We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
tree shaking looks like it doesn't support vendor ?
tree shaking
vendor
import ('vue');
import './deps/vendor.js'; import Vue from 'vue'; // do something by Vue
... <script src="./app.js"></script> ...
npx parcel build --experimental-scope-hoisting index.html
// built code a([["vue.runtime.esm.d7f83dcc.js", "QPfz"], "QPfz"]); require("QPfz"), console.log(require("QPfz").default); // chrome dev tools throw error Uncaught Error: Cannot find module 'QPfz'
import './deps/vendor.js';
I know that I should use it like this.
import ('vue').then(() => { // do something });
but it's normal when parcel build no --experimental-scope-hoisting
parcel build
--experimental-scope-hoisting
The text was updated successfully, but these errors were encountered:
the issues repeats with 2300
Sorry, something went wrong.
No branches or pull requests
β Question
tree shaking
looks like it doesn't supportvendor
?π» Code Sample
vendor.js // this is my common vendor.js
app.js
index.html
npx parcel build --experimental-scope-hoisting index.html
but it's normal if l remove
import './deps/vendor.js';
;I know that I should use it like this.
but it's normal when
parcel build
no--experimental-scope-hoisting
π Your Environment
The text was updated successfully, but these errors were encountered: