JeffreyWay / laravel-elixir-webpack-official

88 stars 28 forks source link

How to add babel transformers? #13

Closed terion-name closed 8 years ago

terion-name commented 8 years ago

I'm trying:

elixir.ready(() => {
    elixir.config.js.webpack.babel = {
        presets: ['es2015'],
        plugins: ['transform-class-properties'],
    }
});
elixir(mix => {
    mix.webpack('app.js', 'public/assets/app/js/app.js', 'resources/assets/js');
});

But it seems not to be working — class properties still fail

terion-name commented 8 years ago

aha. Understood. It uses buble loader, not babel. changed to babel — works ok