NXT-6918: Investigate bun bundler - TKN S8 - #163
Open
dan-ichim-lgp wants to merge 7 commits into
Open
Conversation
Contributor
|
please also check Github Workflow errors |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Checklist
Issue Resolved / Feature Added
Add Bun bundler support for Enact CLI (NXT-6918): expose Bun post-build helpers from @enact/dev-utils, and extend PrerenderPlugin so isomorphic prerender works after Bun.build() (locale HTML / locale-map.json assembly) without webpack compiler hooks.
Resolution
Added bunPlugins export (bun-plugins/) for framework / post-build / prerender / snapshot helpers used by CLI Bun config.
Added PrerenderPlugin.applyBunPostBuild (+ stageBunChunk) to prerender from a built main.js chunk and write locale index HTML the same way as the webpack path.
Hardened prerender runtime for Bun bundles: safer FileXHR / iLib locale resolution, VM staging that avoids corrupting string literals (no bare window/document regex rewrites), and iLib locale-match seeding for isomorphic builds.
Impact: CLI can migrate enact pack --isomorphic / --snapshot / framework post-steps to Bun while keeping prerender output compatible with existing webpack behavior. Additive API only (applyBunPostBuild); webpack plugins unchanged for existing consumers.
Additional Considerations
Links
NXT-6918
Comments
Enact-DCO-1.0-Signed-off-by: Dan Ichim (dan.ichim@lgepartner.com)