I looked at many posts but still cannot get this to work :(
I have .babelrc
{
"comments": false,
"presets": [
["@babel/env", {
"targets": {
"browsers": ["ios 7"]
}
}],
["minify"]
]
}
I want to tell babel to not add "use strict"
(anywhere)
How is this done ?
Babel assumes by default that files being transformed are ES modules. Since that is not the case for you, you'll want to tell it that. You can check out the docs for the
"sourceType"
option, but essentially you want to add:in your Babel options.