Skip to content

babeljs #3

@octavioturra

Description

@octavioturra

Hi,

I'm using it to proccess application versions. Each version is a simply js archive which points to a group of components and outputs a route component.

Then, I have 3 versions in simple.v1.js, advanced.v2.js and a configuration of:

module.exports = {
  entry: path.join(__dirname, 'src/index.js'),
  output: {
    path: path.resolve(__dirname, 'dist'),
    filename: 'bundle.js',
  },
  module: {
    loaders: [
      {
        test: /\.v(\d+).js$/,
        loader: 'webpack-multi-output!babel',
      }
    ]
  },
  plugins: [
    new WebpackMultiOutputPlugin({
      values: ['v1', 'v2']
    })
  ]
}

In my output, babel have not compiled the content, also, it's imports have not been imported.

Can you help me?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions