How to exclude node_modules but one package from babel-loader?
[issue link]Hi, I have written a raw ES6 package and want to use it in my Nuxt project through npm link during development.
I searched for the setting in webpack.
I tried to change the exclude property in extend in nuxt.config.js, but no luck.
extend(config, ctx) {
config.module.rules
.find(aRule => aRule.loader === 'babel-loader')
.exclude = /node_modules\/(?!my-package\/).*/
}
Any ideas?
Thanks.