File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 9
9
"." : {
10
10
"import" : " ./dist/index.mjs" ,
11
11
"require" : " ./dist/index.cjs"
12
+ },
13
+ "./scriptLoader" : {
14
+ "import" : " ./dist/scriptLoader.mjs" ,
15
+ "require" : " ./dist/scriptLoader.cjs"
12
16
}
13
17
},
14
18
"repository" : {
Original file line number Diff line number Diff line change 1
- import { createRequire } from 'node:module'
2
1
import { URLSearchParams } from 'url'
3
2
import { writeFile } from 'fs/promises'
4
3
@@ -35,7 +34,6 @@ export class VuetifyPlugin {
35
34
36
35
async apply ( compiler : Compiler ) {
37
36
if ( this . options . autoImport ) {
38
- const require = createRequire ( import . meta. url )
39
37
compiler . options . module . rules . unshift ( {
40
38
resourceQuery : query => {
41
39
if ( ! query ) return false
@@ -46,7 +44,7 @@ export class VuetifyPlugin {
46
44
)
47
45
} ,
48
46
use : {
49
- loader : require . resolve ( '. /scriptLoader') ,
47
+ loader : 'webpack-plugin-vuetify /scriptLoader',
50
48
options : this . options
51
49
} ,
52
50
} )
You can’t perform that action at this time.
0 commit comments