Skip to content

NXT-6918: Investigate bun bundler - TKN S8 - #163

Open
dan-ichim-lgp wants to merge 7 commits into
developfrom
feature/NXT-6918
Open

NXT-6918: Investigate bun bundler - TKN S8#163
dan-ichim-lgp wants to merge 7 commits into
developfrom
feature/NXT-6918

Conversation

@dan-ichim-lgp

@dan-ichim-lgp dan-ichim-lgp commented Jul 14, 2026

Copy link
Copy Markdown

Checklist

  • I have read and understand the contribution guide
  • A CHANGELOG entry is included
  • At least one test case is included for this feature or bug fix
  • Documentation was added or is not needed
  • This is an API breaking change

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)

@dan-ichim-lgp dan-ichim-lgp self-assigned this Jul 14, 2026
Comment thread plugins/PrerenderPlugin/index.js Outdated
@daniel-stoian-lgp

Copy link
Copy Markdown
Contributor

please also check Github Workflow errors

@dan-ichim-lgp dan-ichim-lgp changed the title Feature/nxt 6918 NXT-6918: Investigate bun bundler - TKN S8 Jul 27, 2026
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