roman01la / webpack-closure-compiler

[DEPRECATED] Google Closure Compiler plugin for Webpack
MIT License
464 stars 25 forks source link

Question about plugin #28

Closed xtuc closed 7 years ago

xtuc commented 7 years ago

Sorry, I never used the Closure compiler.

I wanted to know why this still require babel-loader? Couldn't the Closure compile just be a loader in Webpack where JavaScript goes through?

roman01la commented 7 years ago

Hi. You don't need babel-loader, Closure Compiler is pretty good at transpilation (see https://kangax.github.io/compat-table/es6/#closure). Also it is not a loader plugin, but a replacement for UglifyJS.

xtuc commented 7 years ago

I was thinking if this plugins couldn't directly be a loader in Webpack (since it doesn't need Babel, depending on the JavaScript features used).

Thanks for your answer.

thaoms commented 6 years ago

So, what do you guys use as js loader then? I guess js stuff still needs to be resolved?