Hello. It seems that babel-loader will skip transforming files in node_modules. I use the traditional way to config babel but it did't work.
loaders: [
{
test: /iview.src.*js$/,
use: {
loader: 'babel-loader',
options: {
presets: ['es2015'],
plugins: ['transform-runtime']
}
}
},
// below are default nuxt loaders config.
So I wonder is there any way to let babel transform files in node_modules. Thank you. XD
<!--cmty--><!--cmty_prevent_hook--><div align="right"><sub><em>This question is available on <a href="https://nuxtjs.cmty.io">Nuxt.js</a> community (<a href="https://nuxtjs.cmty.io/nuxt/nuxt.js/issues/c953">#c953</a>)</em></sub></div>