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

jgribonvald picture jgribonvald  路  3Comments

brandon93s picture brandon93s  路  3Comments

joshuajohnson814 picture joshuajohnson814  路  3Comments

JIANGYUJING1995 picture JIANGYUJING1995  路  3Comments

miyamoto-san picture miyamoto-san  路  3Comments