P
P
Peter2016-08-26 01:15:24
JavaScript
Peter, 2016-08-26 01:15:24

Why doesn't webpack work with bable?

It seems that I did everything according to the instructions https://github.com/volkovpv/react-webpack-es6/blob...
But es6 is not transformed into es5.
Why? What is done wrong? What needs to be fixed?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
vvkovaliov, 2016-08-26
@vvkovaliov

module: {
        loaders: [
        {
            test: /\.jsx?$/,
            exclude: /node_modules/,
            loaders: ['react-hot', 'babel?presets[]=react,presets[]=es2015']
        },
        {
            test: /\.scss$/,
            loaders: ["style", "css", "sass"]
        }
        ]
    }

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question