Skip to content
This repository was archived by the owner on Jul 6, 2025. It is now read-only.

Commit eeb558d

Browse files
author
X
authored
refactor: reserve pluginFactory types
1 parent 4610fae commit eeb558d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

plugins/sass.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ const defaultPlugin = {
1919
}
2020
}
2121

22-
let plugin: any = (opts: Options) => ({
22+
const pluginFactory = (opts: Options) => ({
2323
...defaultPlugin,
2424
transform(content: Uint8Array, path: string) {
2525
const ret = renderSync({
@@ -37,6 +37,6 @@ let plugin: any = (opts: Options) => ({
3737
}
3838
})
3939

40-
plugin = { ...plugin, ...defaultPlugin }
40+
Object.assign(pluginFactory, defaultPlugin)
4141

42-
export default plugin;
42+
export default pluginFactory;

0 commit comments

Comments
 (0)