Home

Issue: 1080

Babel Transform Configuration

[issue link]

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

This question is available on Nuxt.js community (#c953)