Skip to content

webpack externals are still bundled in vue-cli #2134

@rjm0017

Description

@rjm0017

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions