I just upgraded to Webpack 2 and I get the exports is not defined runtime error in my browser. I modified my .babelrc as follows:
{ "plugins": [ "syntax-flow", "transform-flow-strip-types", "add-module-exports" ], "presets": [ "latest", "stage-2" ] }
:
{ "plugins": [ "syntax-flow", "transform-flow-strip-types", "add-module-exports" ], "presets": [ ["latest", { "es2015": { "modules": false } }], "stage-2" ] }
Deactivate translation and import of broadcast and import webpack 2. Am I missing something? The string compiles correctly, but it just explodes in the browser.
source share