File tree Expand file tree Collapse file tree 3 files changed +7
-26
lines changed Expand file tree Collapse file tree 3 files changed +7
-26
lines changed Original file line number Diff line number Diff line change 15
15
"url" : " git+https://github.com/vuetifyjs/vuetify-loader.git"
16
16
},
17
17
"scripts" : {
18
- "build" : " unbuild && node ../../scripts/patchMJS.mjs " ,
18
+ "build" : " unbuild" ,
19
19
"dev" : " unbuild --stub"
20
20
},
21
21
"author" : " Kael Watts-Deuchar" ,
Original file line number Diff line number Diff line change
1
+ import { createRequire } from 'node:module'
1
2
import { parseTemplate , TemplateMatch } from './parseTemplate'
2
- import importMap from 'vuetify/dist/json/importMap.json' assert { type : 'json' }
3
- import importMapLabs from 'vuetify/dist/json/importMap-labs.json' assert { type : 'json' }
4
3
import { isObject } from '../'
5
4
import type { Options } from '../'
6
5
6
+ const require = createRequire ( import . meta. url )
7
+
8
+ const importMap = require ( 'vuetify/dist/json/importMap.json' ) as typeof import ( 'vuetify/dist/json/importMap.json' )
9
+ const importMapLabs = require ( 'vuetify/dist/json/importMap-labs.json' ) as typeof import ( 'vuetify/dist/json/importMap-labs.json' )
10
+
7
11
export function getImports ( source : string , options : Options ) {
8
12
const { components, directives } = parseTemplate ( source )
9
13
const resolvedComponents : TemplateMatch [ ] = [ ]
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments