Skip to content

Commit 7bd6e67

Browse files
committed
build: remove browser field from package.json
fixes the webpack target to be the esm-bundler like vue
1 parent b2d3941 commit 7bd6e67

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
"name": "vue-router",
33
"version": "4.0.0-beta.11",
44
"main": "dist/vue-router.cjs.js",
5-
"browser": "dist/vue-router.esm-browser.js",
65
"unpkg": "dist/vue-router.global.js",
76
"jsdelivr": "dist/vue-router.global.js",
87
"module": "dist/vue-router.esm-bundler.js",

rollup.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ const outputConfigs = {
3232
format: `iife`,
3333
},
3434
esm: {
35-
file: pkg.browser,
35+
file: pkg.browser || pkg.module.replace('bundler', 'browser'),
3636
format: `es`,
3737
},
3838
}

0 commit comments

Comments
 (0)