the with statement is used in the development process, and the webpack cannot be compiled
the reason is that strict mode
cannot use with
, but how to close strict mode
?
webpack :4.8.3 babel :6.26.3
in addition, the babel-plugin-transform-remove-strict-mode
plug-in found on the Internet was also used, but the compilation failed.
.babelrc file
{
"presets": [
"es2015"
],
"plugins": [
"transform-remove-strict-mode",
[
"import",
{
"libraryName": "ramda",
"libraryDirectory": "src",
"camel2DashComponentName": false
}
]
]
}