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
Post a Comment