build: add sideEffects: false flags

This commit is contained in:
Evan You 2018-09-20 00:02:48 -04:00
parent fc1d6e52f3
commit a89bbc018b
6 changed files with 7 additions and 1 deletions

View File

@ -5,6 +5,7 @@
"main": "index.js",
"module": "dist/compiler.esm-bundler.js",
"typings": "dist/index.d.ts",
"sideEffects": false,
"repository": {
"type": "git",
"url": "git+https://github.com/vuejs/vue.git"
@ -18,4 +19,4 @@
"url": "https://github.com/vuejs/vue/issues"
},
"homepage": "https://github.com/vuejs/vue/tree/dev/packages/compiler#readme"
}
}

View File

@ -5,6 +5,7 @@
"main": "index.js",
"module": "dist/core.esm-bundler.js",
"typings": "dist/index.d.ts",
"sideEffects": false,
"repository": {
"type": "git",
"url": "git+https://github.com/vuejs/vue.git"

View File

@ -6,6 +6,7 @@
"module": "dist/observer.esm-bundler.js",
"typings": "dist/index.d.ts",
"unpkg": "dist/observer.global.js",
"sideEffects": false,
"repository": {
"type": "git",
"url": "git+https://github.com/vuejs/vue.git"

View File

@ -6,6 +6,7 @@
"module": "dist/renderer-dom.esm-bundler.js",
"typings": "dist/index.d.ts",
"unpkg": "dist/renderer-dom.global.js",
"sideEffects": false,
"buildOptions": {
"name": "VueDOMRenderer",
"formats": ["esm", "cjs", "global", "esm-browser"]

View File

@ -5,6 +5,7 @@
"main": "index.js",
"module": "dist/scheduler.esm-bundler.js",
"typings": "dist/index.d.ts",
"sideEffects": false,
"repository": {
"type": "git",
"url": "git+https://github.com/vuejs/vue.git"

View File

@ -6,6 +6,7 @@
"module": "dist/vue.esm-bundler.js",
"typings": "dist/index.d.ts",
"unpkg": "dist/vue.global.js",
"sideEffects": false,
"buildOptions": {
"name": "Vue",
"compat": true,