Skip to content
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

fix(cli-plugin-babel): transpileDependencies should only match packages inside node_modules, close #3057 #3229

Merged
merged 6 commits into from
Jan 30, 2019

Conversation

jkzing
Copy link
Member

@jkzing jkzing commented Jan 2, 2019

@jkzing jkzing changed the title fix(cli-plugin-babel): only include package under node_modules whose name match transpileDependencies, close #3057 fix(cli-plugin-babel): transpileDependencies should only match packages inside node_modules, close #3057 Jan 2, 2019
@@ -70,10 +70,23 @@ test('dep from node_modules should not been transpiled', async () => {
test('dep from node_modules should been transpiled', async () => {
await project.write(
'vue.config.js',
`module.exports = { transpileDependencies: ['external-dep'] }`
`module.exports = { transpileDependencies: ['external-dep', '@scope/external-dep'] }`
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do we want to implicit include scoped package with the same name? This behavior isn't documented...

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it was unintended… Thanks for pointing out.

@jkzing jkzing force-pushed the fix-trans-dep branch 2 times, most recently from be6698b to a3177d3 Compare January 2, 2019 04:43
@haoqunjiang haoqunjiang merged commit fb71653 into vuejs:dev Jan 30, 2019
@jkzing jkzing deleted the fix-trans-dep branch January 31, 2019 02:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants