aruntk / wc-loader

:toilet: Webcomponents webpack loader.
MIT License
99 stars 17 forks source link

ES6 transpiling + WC loader not working #15

Closed moebiusmania closed 7 years ago

moebiusmania commented 7 years ago

I have tried to use this syntax as the readme says

loader: 'babel-loader!wc-loader'

WC loader works, but the resulting Javascript code isn't transpiled, the Babel loader is already configured, as I added WC loader on an existing workflow.

I will put a quick repo ASAP to reproduce the issue, but if you have some quick tip it is welcome.

thanks

moebiusmania commented 7 years ago

I have solved this thanks to Webpack 2 multiple loaders syntax

rules: [{
  test: /\.html$/,
  loaders: ['babel-loader?presets[]=es2015', 'wc-loader']
}]