-
Notifications
You must be signed in to change notification settings - Fork 27.1k
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
webpack dynamic modules #362
Comments
Yes on https://github.com/zeit/next.js/blob/master/server/index.js#L42 we serve only |
I'd love to have a simple solution for dynamic imports, especially with the more definitive ES APIs coming |
@rauchg currently using webpack 1.x we still can use |
@rauchg I have idea, it's can look like this : <Require src="./../components/test">
<Client>
{'Hello from Client!'}
<ProxyComponent isClient={true} ...otherOptions />
</Client>
<Server>
{'Hello from Server!'}
<ProxyComponent isServer={true} ...otherOptions/>
</Server>
</Require> or if we want just make a lazy load component <Require src="gl-react"/> PS: It's still random thoughts |
@arunoda, @rauchg updated to master version of next, still have problem with Thanks! |
@mr47 I think it won't as the current state. Since we open the programmatic API with 2.0 and the webpack config, it allows us to play with these features in the userland. Keep us updated. |
Let's move the discussion to #728, because this will be a priority after 2.0 |
It's seem that current webpack config don't support
require.ensure
Simple component with
gl-react
It's work in dev but when i try to
next build
and thennext start
get error that chunk not findIt's name
3.3
and it's located in.next
folder 😕Thanks!
UPD: pull request for fix open
The text was updated successfully, but these errors were encountered: