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:
Evan You 2021-03-30 19:51:55 -04:00
parent 58e2376c4d
commit 66b94dc5e1
2 changed files with 5 additions and 1 deletions

View File

@ -3,7 +3,6 @@
"version": "3.0.9",
"description": "@vue/compiler-sfc",
"main": "dist/compiler-sfc.cjs.js",
"module": "dist/compiler-sfc.esm-browser.js",
"types": "dist/compiler-sfc.d.ts",
"files": [
"dist"

View File

@ -11,6 +11,11 @@ export default defineConfig({
define: {
__COMMIT__: JSON.stringify(commit)
},
resolve: {
alias: {
'@vue/compiler-sfc': '@vue/compiler-sfc/dist/compiler-sfc.esm-browser.js'
}
},
optimizeDeps: {
exclude: ['consolidate']
}