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

split-require and factor-bundle chicken/egg #40

Open
emilbayes opened this issue Aug 30, 2020 · 0 comments
Open

split-require and factor-bundle chicken/egg #40

emilbayes opened this issue Aug 30, 2020 · 0 comments

Comments

@emilbayes
Copy link

Hi!

I'm a little confused by the combination of split-require and factor-bundle in tandem.

Is it possible for split-require to emit all files so they can be passed to factor-bundle ahead of time?
Looking at the events it seems that split-require already leaves out dependencies from the main entry from the dynamic imports, but is it possible somehow to use factor bundle to take out all external dependencies?

In my test it seems factor.pipeline emits before split.pipeline, so I can't inject factor bundle later?

So my main entry file will contain a lot of shared dependencies, but a subset of my dynamic imports will also share dependencies. I'm trying to get a setup with hash based file naming so that all files are renamed to their hash and I can serve them with Cache-Control: Immutable, where npm dependencies will likely change very rarely, while my source files will sometimes change.

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