Skip to content

Commit

Permalink
chore: use alias instead of module field
Browse files Browse the repository at this point in the history
...before we figure out what is the ideal behavior when adding exports field
  • Loading branch information
yyx990803 committed Mar 30, 2021
1 parent 58e2376 commit 66b94dc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 0 additions & 1 deletion packages/compiler-sfc/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
5 changes: 5 additions & 0 deletions packages/sfc-playground/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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']
}
Expand Down

0 comments on commit 66b94dc

Please sign in to comment.