Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support chunks created by async components #17

Open
harrybin opened this issue Apr 1, 2019 · 0 comments
Open

support chunks created by async components #17

harrybin opened this issue Apr 1, 2019 · 0 comments

Comments

@harrybin
Copy link

harrybin commented Apr 1, 2019

Hi,
please support async components for screating chunks:
https://serverless-stack.com/chapters/code-splitting-in-create-react-app.html
currently I get

Module parse failed: Unexpected token (5:9)
You may need an appropriate loader to handle this file type.
| import MonitoringModuleContent from './MonitoringModuleContent';
| var MonitoringMainAsync = asyncComponent(function () {
>   return import('./Monitoring');
| });
| /**

https://www.npmjs.com/package/react-scripts-ts
supports this, but it's outdated

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant