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", "main": "index.js",
"module": "dist/compiler.esm-bundler.js", "module": "dist/compiler.esm-bundler.js",
"typings": "dist/index.d.ts", "typings": "dist/index.d.ts",
"sideEffects": false,
"repository": { "repository": {
"type": "git", "type": "git",
"url": "git+https://github.com/vuejs/vue.git" "url": "git+https://github.com/vuejs/vue.git"

View File

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

View File

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

View File

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

View File

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

View File

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