Skip to content
This repository was archived by the owner on Jul 4, 2018. It is now read-only.
This repository was archived by the owner on Jul 4, 2018. It is now read-only.

Babel options aren't being passed through #20

@anzorb

Description

@anzorb

After banging my head on the wall for days, I found out that isparta-loader doesn't correctly pass the babel options via query in webpack config.

module: {
    preLoaders: [{
        test: /\.js$/,
        exclude: /(spec|third-party|node_modules|test)/,
        loader: 'isparta',
        query: {
            babel: {
                plugins: ['transform-decorators-legacy', 'babel-plugin-rewire']
            }
        }
    }],

Instead, I had to do it using webpack key config:

isparta: {
    babel: {
        plugins: ['transform-decorators-legacy', 'babel-plugin-rewire']
    }
},
module: {
    preLoaders: [{
        test: /\.js$/,
        exclude: /(spec|third-party|node_modules|test)/,
        loader: 'isparta'
    }],

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions