jaredpalmer / jaredpalmer/backpack
Dynamic import
- Dominant language
- JavaScript
- Stars
- 4.4k
- Forks
- 164
- PR merge metrics
- No merged PRs in 30d
Description
Importing my code-split React app gives me this annoying error:

Using `react-loadable` for the code splitting etc. Looking at `razzle` it should just be a matter of adding `babel-plugin-syntax-dynamic-import` to the Babel config?
https://github.com/jaredpalmer/razzle/blob/75966e3eb6177657c066a44b97e63870f5fa5eeb/packages/babel-preset-razzle/index.js#L21-L22
Contributor guide
Research direction
Inspect Backpack's Babel configuration and compare it with the linked Razzle preset lines that add dynamic-import syntax support. Reproduce the React code-splitting error with react-loadable, then verify that the app builds and imports the split module without the reported error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- babel, javascript, react, webpack
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100