First off, this example's build works perfectly fine without the new --experimental-scope-hoisting flag of @parcel-bundler.
But when turned on via changing the build task to:
...
"build": "parcel build src/index.html --public-url / --experimental-scope-hoisting && cp ./_redirects ./dist/_redirects"
...
and starting a local server with e.g. npx http-server dist -p 1337,
I'm getting a console error (Chrome 67, macOS High Sierra):
Uncaught ReferenceError: $28$export$createRouteBundle is not defined
at src.9b3745b6.js:1
at src.9b3745b6.js:1
@HenrikJoreteg I know this is probably not an issue with this example or with redux-bundler itself. But maybe you have an idea why it fails or know some guys from @parcel-bundler who are interested.
BTW:
- JS bundle size w/o flag set: 48.77 KB
- JS bundle size w/ flag set: 18.11 KB 😮 🚀