discourse/frontend/discourse/lib
David Taylor 6392af6453
DEV: Improve JS chunk configuration & naming (#40947)
- Introduce `/* dynamicChunkName: "foo" */` support via a rolldown
plugin. This allows us to intentionally name our dynamic `import()`
chunks

- Add specific logic for Embroider routes and ember-inspector dynamic
chunks

- For non-entrypoint chunks, stop rolldown auto-generating a potentially
confusing name. Just name it `chunk-[hash]`.

- Remove `preserveEntrySignatures: "strict"` config. This was added in
the early days of Vite experimentation, but doesn't seem to be required
any more. Switching back to the default reduces the number of chunks in
our build
2026-06-16 18:52:30 +01:00
..
babel-transform-module-renames.js
discourse-chunk-names.mjs DEV: Improve JS chunk configuration & naming (#40947) 2026-06-16 18:52:30 +01:00
dynamic-chunk-url-plugin.mjs DEV: Refactor worker and WASM loading for media-optimization-worker (#40793) 2026-06-12 09:18:32 +01:00
embroider-vite-resolver-options.mjs DEV: Replace JS build system with Rolldown (#35963) 2026-05-29 11:11:55 +01:00
maybe-babel.mjs DEV: Replace JS build system with Rolldown (#35963) 2026-05-29 11:11:55 +01:00
optimized-ember.mjs DEV: Replace JS build system with Rolldown (#35963) 2026-05-29 11:11:55 +01:00
webpack-customize-chunk-url-plugin.js
with-side-watch.js
wrap-test-modules-plugin.mjs DEV: Replace JS build system with Rolldown (#35963) 2026-05-29 11:11:55 +01:00