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

Multiple dependencies bundled in one file (previously "bundles" config option) #2470

Open
1 of 10 tasks
MBelniak opened this issue Sep 18, 2023 · 0 comments
Open
1 of 10 tasks

Comments

@MBelniak
Copy link

MBelniak commented Sep 18, 2023

  • SystemJS Version:
  • Which library are you using?
    • system.js
    • s.js
    • system-node.cjs
  • Which extras are you using?
    • AMD extra
    • Named Exports
    • Named Register
    • Transform
    • Use Default
    • Global
    • Dynamic Import Maps
  • Are you using any custom hooks?

Question

What happened to "bundles" option that I keep seeing in old posts with version 0.x? As I understand, it allowed bundling multiple dependencies in one file and then use one http request to fetch multiple dependencies. Is it disallowed right now because of "one file - one module" idea? I see some clues indicating this idea in #2092 (comment)
IMO it would be beneficial if I could fetch 20 libraries within 4 API calls, especially in microfrontends architecture where I could end up having 50 various shared components. Neither doing 50 requests nor bundling the components is optimal. I know RequireJS has "bundles" option which works really nice, even with webpack where you only really need webpack-concat-plugin.

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