babeljs - Is there a way to use loose modules when using es2015 preset in babel 6? -


tried use following babelrcs:

{   "presets": [      ["es2015", { "transform-es2015-modules-commonjs": { "loose": true } }]   ] } 

fails "invalid options type foreign"

{   "presets": ["es2015"],   "plugins": [     ["transform-es2015-modules-commonjs", { "loose": true }]   ] } 

ignores "loose" option

{   "plugins": [      ["transform-es2015-modules-commonjs", { "loose": true }]   ] } 

does not use preset

i ended creating preset es2015-mod same purpose - exact copy of babel's es2015 loose modules enabled.


Comments

Popular posts from this blog

matlab - error with cyclic autocorrelation function -

django - (fields.E300) Field defines a relation with model 'AbstractEmailUser' which is either not installed, or is abstract -

c# - What is a good .Net RefEdit control to use with ExcelDna? -