# @theorchard/frontend-cli-rspack

## 1.0.0

### Major Changes

-   Initial release. Rspack engine for `@theorchard/frontend-cli`, a drop-in alternative to the webpack engine. Select it with `plugins: ['i18n', 'rspack']` in `frontend.config`.
-   Rspack 2.0 build pipeline (`build`, `dev`, `preview`): `builtin:swc-loader`, CSS extraction, SWC and Lightning CSS minimizers, and `worker-rspack-loader`.
-   Manifest compatible with the webpack engine (`enableManifest` produces `dml.json`, plus `RspackAssetsPlugin` for the app-level manifest). Key set and value shape verified against the webpack engine on frontend-workstation.
-   `PugEmitPlugin` renders the pug template to raw HTML, preserving inline scripts (Segment, etc.) that rspack's `HtmlRspackPlugin` rejects.
-   UMD library output matching webpack: the real amd/commonjs id is kept and the global-var fallback is sanitized to a valid identifier.
-   Native type-checking via `ts-checker-rspack-plugin`.
-   `enableModules` (module federation) is not supported yet and fails fast with a clear error, since rspack does not expose webpack's `resolve.plugins`.
