Vue-cli: webpack externals are still bundled in vue-cli

Created on 10 Aug 2018  路  1Comment  路  Source: vuejs/vue-cli

Version

3.0.0-rc.11

Node and OS info

node v8.11.3; npm v6.1.0; windows 10

Steps to reproduce

Reproduction steps in the readme of this repo: https://github.com/rjm0017/external-bundle-issue

What is expected?

vue-cli should be using the exports in vue.config.js to externalize three.js

What is actually happening?

bundle size is massive when three.js is imported, even with the externalization referenced from the vue-cli docs


Reproduction can be done in https://github.com/rjm0017/external-bundle-issue and all of the steps are there

Most helpful comment

externals should be a package name, i.e. lowercase three, not THREE.

>All comments

externals should be a package name, i.e. lowercase three, not THREE.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

csakis picture csakis  路  3Comments

Benzenes picture Benzenes  路  3Comments

OmgImAlexis picture OmgImAlexis  路  3Comments

eladcandroid picture eladcandroid  路  3Comments

wahidrahim picture wahidrahim  路  3Comments