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 99 "." : {
1010 "import" : " ./dist/index.mjs" ,
1111 "require" : " ./dist/index.cjs"
12+ },
13+ "./scriptLoader" : {
14+ "import" : " ./dist/scriptLoader.mjs" ,
15+ "require" : " ./dist/scriptLoader.cjs"
1216 }
1317 },
1418 "repository" : {
Original file line number Diff line number Diff line change 1- import { createRequire } from 'node:module'
21import { URLSearchParams } from 'url'
32import { writeFile } from 'fs/promises'
43
@@ -35,7 +34,6 @@ export class VuetifyPlugin {
3534
3635 async apply ( compiler : Compiler ) {
3736 if ( this . options . autoImport ) {
38- const require = createRequire ( import . meta. url )
3937 compiler . options . module . rules . unshift ( {
4038 resourceQuery : query => {
4139 if ( ! query ) return false
@@ -46,7 +44,7 @@ export class VuetifyPlugin {
4644 )
4745 } ,
4846 use : {
49- loader : require . resolve ( '. /scriptLoader') ,
47+ loader : 'webpack-plugin-vuetify /scriptLoader',
5048 options : this . options
5149 } ,
5250 } )
You can’t perform that action at this time.
0 commit comments