-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
transpileDependencies option doesn't work #1552
New issue
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
Comments
Sorry but that's not a valid repro since CodeSandbox is not using the latest CLI - please provide an actual repository. |
@yyx990803 I created a new template and could not reproduce this issue. I made a diff with my current project setup and found that I had the babel config in If this is the intended behavior please close this ticket. |
Yep, |
@dirknilius how did you get this to actually work?? I'm running into the same issue. Updated all vue cli dependencies to the latest versions and my babel.config.js looks just like one created by the newest version of the cli. @yyx990803 here is a reproduction repo for you https://github.com/jessicarobins/vue-cli-bug-reproduction can this issue be reopened? |
this can help, vuejs/vue-loader#1411 |
@yyx990803 This should be added as a huge warning on the EDIT: The workaround of having yet another dotfile worked in my case. |
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.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 triedtranspileDependencies: [/.*/]
but not any single package is transpiled.The text was updated successfully, but these errors were encountered: