We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d6e2f06 commit 8dcfb65Copy full SHA for 8dcfb65
src/minify.ts
@@ -24,17 +24,15 @@ export class ParcelCssMinifyPlugin {
24
private readonly transform: TransformType
25
26
constructor(opts: IMinifyPluginOpts = {}) {
27
- const { implementation, ...otherOpts } = opts
+ const { implementation, ...otherOpts } = opts
28
if (implementation && typeof implementation.transform !== 'function') {
29
throw new TypeError(
30
`[ParcelCssMinifyPlugin]: implementation.transform must be an '@parcel/css' transform function. Received ${typeof implementation.transform}`
31
)
32
}
33
34
this.transform = implementation?.transform ?? _transform
35
- this.options = {
36
- ...otherOpts
37
- }
+ this.options = otherOpts
38
39
40
apply(compiler: Compiler) {
0 commit comments