chore: use alias instead of module field
...before we figure out what is the ideal behavior when adding exports field
This commit is contained in:
parent
58e2376c4d
commit
66b94dc5e1
@ -3,7 +3,6 @@
|
|||||||
"version": "3.0.9",
|
"version": "3.0.9",
|
||||||
"description": "@vue/compiler-sfc",
|
"description": "@vue/compiler-sfc",
|
||||||
"main": "dist/compiler-sfc.cjs.js",
|
"main": "dist/compiler-sfc.cjs.js",
|
||||||
"module": "dist/compiler-sfc.esm-browser.js",
|
|
||||||
"types": "dist/compiler-sfc.d.ts",
|
"types": "dist/compiler-sfc.d.ts",
|
||||||
"files": [
|
"files": [
|
||||||
"dist"
|
"dist"
|
||||||
|
@ -11,6 +11,11 @@ export default defineConfig({
|
|||||||
define: {
|
define: {
|
||||||
__COMMIT__: JSON.stringify(commit)
|
__COMMIT__: JSON.stringify(commit)
|
||||||
},
|
},
|
||||||
|
resolve: {
|
||||||
|
alias: {
|
||||||
|
'@vue/compiler-sfc': '@vue/compiler-sfc/dist/compiler-sfc.esm-browser.js'
|
||||||
|
}
|
||||||
|
},
|
||||||
optimizeDeps: {
|
optimizeDeps: {
|
||||||
exclude: ['consolidate']
|
exclude: ['consolidate']
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user