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

Commit cd8a593

Browse files
author
X
authored
refactor: extends pluginFactory types
1 parent eeb558d commit cd8a593

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

plugins/sass.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@ const pluginFactory = (opts: Options) => ({
3737
}
3838
})
3939

40-
Object.assign(pluginFactory, defaultPlugin)
40+
pluginFactory.displayName = defaultPlugin.name
41+
pluginFactory.test = defaultPlugin.test
42+
pluginFactory.acceptHMR = defaultPlugin.acceptHMR
43+
pluginFactory.transform = defaultPlugin.transform
4144

42-
export default pluginFactory;
45+
export default pluginFactory

0 commit comments

Comments
 (0)