madskristensen / WebCompiler

Visual Studio extension for compiling LESS and Sass files
Other
451 stars 172 forks source link

Pass in Babel configuration #439

Open ssjarchon opened 4 years ago

ssjarchon commented 4 years ago

Our use case is to allow our developers to write javascript for our application using newer techniques (es2017+). Currently it appears that the preset for the babel transpiler is hardcoded to React; we'd like to be able to use @babel/preset-env as we need to support a variety of environments including IE 10.

How can we pass in a configuration for Babel for the Web Compiler?

ashrafsabrym commented 4 years ago

WebCompiler uses the old 5.x version of Babel that doesn't support such options. We're stuck with emitting ES5 code.

markadrake commented 4 years ago

Can we reliably upgrade to Babel 7 and provide a default configuration file that doesn't mess up everyone's existing project, but adds support for a custom configuration file none the less?