Skip to content

transpileDependencies option doesn't work #1552

Closed
@dirknilius

Description

@dirknilius

Version

3.0.0-beta.16

Reproduction link

https://codesandbox.io/s/1wn0368mv4

Steps to reproduce

Add a package with modern browser syntax and add the transpileDependencies: ["some-package"] option in vue.config.js.

  • Run the codesandbox example in IE 11 -> script error.
  • Look and the source code -> not transpiled.

What is expected?

The given package(s) should be transpiled.

What is actually happening?

The option is ignored.


I have a npm dependency which uses ES6 features and is unfortunately not transpiled. So I added the transpileDependencies: ["vue-moment"] option to my vue.config.js. But the package ist not going to be transpiled. The build version contains all the const and let and spread operator stuff from the original. When I copy the file to the project source and use it all is fine. I also tried transpileDependencies: [/.*/] but not any single package is transpiled.

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs reproductionThis issue is missing a minimal runnable reproduction, provided by the author

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions