webpack打包后,在打開html頁面,就報了如下的錯誤.babelrc的配置如下:{ "presets": [ "react", "es2015", "stage-0" ], "env": { "development": { "plugins": [ [ "react-transform", { "transforms": [ { "transform": "react-transform-hmr", "imports": [ "react" ], "locals": [ "module" ] } ] } ] ] } }}報錯:locals[0] does not appear to be a `module` object with Hot Module replacement API enabled. You should disable react-transform-hmr in production by using `env` section in Babel configuration.
webpack打包壓縮后,報錯,怎么解決?
胡子哥哥
2018-10-09 17:30:24