File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change 1
- import defu from 'defu'
1
+ import * as defu from 'defu'
2
2
import type { PluginOptions } from './types'
3
3
import unplugin from '.'
4
4
5
5
function scriptSetupModule ( this : any , inlineOptions : PluginOptions = { } ) {
6
- const options = defu ( inlineOptions , this . nuxt . options . scriptSetup )
6
+ // FIXME: defu cjs types should changed
7
+ const options = ( defu . default || defu ) ( inlineOptions , this . nuxt . options . scriptSetup )
7
8
8
9
// install webpack plugin
9
10
this . extendBuild ( ( config : any ) => {
@@ -19,6 +20,3 @@ function scriptSetupModule(this: any, inlineOptions: PluginOptions = {}) {
19
20
}
20
21
21
22
export default scriptSetupModule
22
- module . exports = scriptSetupModule
23
- module . exports . default = scriptSetupModule
24
- Object . defineProperty ( module . exports , '__esModule' , { value : true } )
You can’t perform that action at this time.
0 commit comments