Skip to content

Add Support to Code Splitting && Dynamic import #2015

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

Closed
shai32 opened this issue Apr 22, 2017 · 1 comment
Closed

Add Support to Code Splitting && Dynamic import #2015

shai32 opened this issue Apr 22, 2017 · 1 comment

Comments

@shai32
Copy link

shai32 commented Apr 22, 2017

Does create-react-app support this?
https://webpack.js.org/guides/code-splitting-async/

is there any docs, explaining how to use it?

@gaearon
Copy link
Contributor

gaearon commented Apr 22, 2017

Yes. There are no docs yet because we'll switch approach in next version. Once we do, we'll document it.

For now, use require.ensure(): https://webpack.js.org/guides/code-splitting-async/#require-ensure-.

In 0.10, we will support import() instead: https://webpack.js.org/guides/code-splitting-async/#dynamic-import-import-.

@gaearon gaearon closed this as completed Apr 22, 2017
@lock lock bot locked and limited conversation to collaborators Jan 22, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants