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

Accept Dynamic Entries and RuntimeChunks #21

Merged
merged 4 commits into from
Jun 17, 2019

Conversation

azizhk
Copy link
Contributor

@azizhk azizhk commented Jun 17, 2019

Hi,
I'm trying to integrate this plugin with next.js (vercel/next.js#7563)
Next.js has Dynamic Entries, Webpack Documentation
Source:
https://github.com/zeit/next.js/blob/a71cb644b5b7f45521d7a49f5cfca171b3d81a1e/packages/next/build/webpack-config.ts#L336-L341

So had to make a few changes.

@azizhk azizhk changed the title Accept Dynamic Entries Accept Dynamic Entries and RuntimeChunks Jun 17, 2019
@prateekbh
Copy link
Owner

Thanks for this work :)

Can you post a small sample webpack config for this? I'll use for adding tests?

@azizhk
Copy link
Contributor Author

azizhk commented Jun 17, 2019

I'll add tests itself.

@prateekbh prateekbh self-requested a review June 17, 2019 16:16
Copy link
Owner

@prateekbh prateekbh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So far looks good

@azizhk
Copy link
Contributor Author

azizhk commented Jun 17, 2019

I've added the tests. I might have gone overboard with the various configs, so let me know and I'll delete whatever is unnecessary. A few files are the same. I don't know if I should de-duplicate or let them be? These files would have to be split if webpack modifies it's runtime to use es2015+ features (highly unlikely).

@prateekbh
Copy link
Owner

This looks great thanks 👍

@prateekbh prateekbh merged commit 032b16b into prateekbh:master Jun 17, 2019
@azizhk azizhk deleted the dynamic_entries branch June 18, 2019 06:53
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

Successfully merging this pull request may close these issues.

2 participants