You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ git clone git@github.com:yamacent/vue-next-minimal-reproduction-tree-shaking.git
$ cd vue-next-minimal-reproduction-tree-shaking
$ npm install
$ npx webpack
# open dist/index.html in the browser and nothing will be shown# un-comment `console.log(compile)` in `src/index.js`
$ npx webpack
# open dist/index.html again and `hello` will be shown this time
What is expected?
hello is shown even console.log(compile) does not exist
What is actually happening?
nothing is shown when console.log(compile) does not exist
Version
3.0.0-beta.14
Reproduction link
https://github.com/yamacent/vue-next-minimal-reproduction-tree-shaking
Steps to reproduce
What is expected?
hello
is shown evenconsole.log(compile)
does not existWhat is actually happening?
nothing is shown when
console.log(compile)
does not existTree Shaking may be the cause.
https://webpack.js.org/guides/tree-shaking/
if
sideEffects
is set to true, it works fine.https://github.com/vuejs/vue-next/blob/master/packages/vue/package.json#L10
The text was updated successfully, but these errors were encountered: