-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathimports.config.js
49 lines (47 loc) · 1.23 KB
/
imports.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
/*
Config for https://www.npmjs.com/package/babel-plugin-transform-imports
*/
const importOptions = {
'vue': {
transform: '/modules/vue@3.2.21.esm.min.prod.js',
skipDefaultConversion: true
},
'@vue/devtools-api': {
transform: '/modules/vue-devtools-api@6.0.0.esm.min.js',
skipDefaultConversion: true
},
'vue-router': {
transform: '/modules/vue-router@4.0.12.esm.min.js',
skipDefaultConversion: true
},
'@headlessui/vue': {
transform: '/modules/headlessui-vue@1.4.2.esm.min.js',
skipDefaultConversion: true
},
'@heroicons/vue\/[^\/]*$': {
transform: (importName, matches) => `/modules/${matches[0]}/${importName}.js`,
skipDefaultConversion: false
},
'date-fns': {
transform: '/modules/date-fns@2.26.0.esm.min.js',
skipDefaultConversion: true
},
'axios': {
transform: '/modules/axios@0.24.0.esm.min.js',
skipDefaultConversion: false
}
}
/*
Specify modules to be excluded from import transforms.
These should be 'leaves' of the dependency graph.
They should have no dependencies themselves.
This is a performance optimization.
*/
const excludedLibraries = [
'vue@3.2.21.esm.min.prod.js',
'date-fns@2.26.0.esm.min.js'
]
export {
importOptions,
excludedLibraries
}