feat!: rename package to @lynx-js/bundle-webpack-plugin#2314
feat!: rename package to @lynx-js/bundle-webpack-plugin#2314
Conversation
…pack-plugin BREAKING CHANGE: Package renamed from @lynx-js/template-webpack-plugin to @lynx-js/bundle-webpack-plugin to align with official terminology.
🦋 Changeset detectedLatest commit: f6f28b4 The changes in this PR will be included in the next version bump. This PR includes changesets to release 10 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
Important Review skippedToo many files! This PR contains 228 files, which is 78 over the limit of 150. ⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: ⛔ Files ignored due to path filters (2)
📒 Files selected for processing (228)
You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Pull request overview
This PR performs a breaking rename of the webpack plugin package from @lynx-js/template-webpack-plugin to @lynx-js/bundle-webpack-plugin, updates internal references/dependents accordingly, and introduces/ports a substantial test suite for the renamed package.
Changes:
- Rename package + docs/routes from
template-webpack-plugintobundle-webpack-plugin. - Update dependent packages (rspeedy plugins, webpack plugins, website) to import the new package name and update TS project references.
- Add/port
bundle-webpack-pluginsources and a large set of integration-style test cases.
Reviewed changes
Copilot reviewed 53 out of 230 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| website/rspress.config.ts | Update docs sidebar/changelog routes to bundle-webpack-plugin. |
| website/package.json | Swap workspace devDependency to @lynx-js/bundle-webpack-plugin. |
| pnpm-lock.yaml | Lockfile updated to reflect rename, but also contains unrelated dependency resolution changes. |
| packages/webpack/tsconfig.json | Update TS project reference from template plugin to bundle plugin. |
| packages/webpack/react-webpack-plugin/src/ReactWebpackPlugin.ts | Update import to @lynx-js/bundle-webpack-plugin. |
| packages/webpack/react-webpack-plugin/src/loaders/options.ts | Update TSDoc @inheritdoc reference to new package name. |
| packages/webpack/react-webpack-plugin/package.json | Update devDependency + peerDependency package name. |
| packages/webpack/react-webpack-plugin/test/**/rspack.config.js | Update test configs to import from @lynx-js/bundle-webpack-plugin. |
| packages/webpack/css-extract-webpack-plugin/src/CssExtractRspackPlugin.ts | Update imports to @lynx-js/bundle-webpack-plugin. |
| packages/webpack/css-extract-webpack-plugin/package.json | Update devDependency + peerDependency package name. |
| packages/webpack/css-extract-webpack-plugin/tsconfig*.json | Update TS project references to bundle plugin. |
| packages/webpack/css-extract-webpack-plugin/etc/*.api.md | Update API report import path to new package name. |
| packages/webpack/css-extract-webpack-plugin/test/** | Update tests to import from @lynx-js/bundle-webpack-plugin. |
| packages/webpack/bundle-webpack-plugin/package.json | Rename package, adjust repository directory and vitest project name. |
| packages/webpack/bundle-webpack-plugin/README.md | Rename README header to new package name. |
| packages/webpack/bundle-webpack-plugin/etc/bundle-webpack-plugin.api.md | Update API report header to new package name. |
| packages/webpack/bundle-webpack-plugin/api-extractor.json | Add api-extractor config for the renamed package. |
| packages/webpack/bundle-webpack-plugin/src/index.ts | Public entry exports for template/encode/web encode + CSS exports. |
| packages/webpack/bundle-webpack-plugin/src/WebEncodePlugin.ts | Web template encoding logic and asset inlining/deletion behavior. |
| packages/webpack/bundle-webpack-plugin/src/web/* | Web style info generation types + implementation. |
| packages/webpack/bundle-webpack-plugin/src/polyfill/requireModuleAsync.ts | Add polyfill generator for caching lynx.requireModuleAsync. |
| packages/webpack/bundle-webpack-plugin/src/LynxAsyncChunksRuntimeModule.ts | Add runtime module generator for async chunk id -> filename mapping. |
| packages/webpack/bundle-webpack-plugin/test/** | Add/port extensive test suite + fixtures and snapshots for the renamed plugin. |
| packages/webpack/bundle-webpack-plugin/CHANGELOG.md | Changelog carried over (but needs header/name update). |
| packages/rspeedy/plugin-react/src/** | Update imports/references to the renamed package. |
| packages/rspeedy/plugin-react/test/*.ts | Update tests to import from @lynx-js/bundle-webpack-plugin. |
| packages/rspeedy/plugin-react/package.json | Depend on @lynx-js/bundle-webpack-plugin instead of template plugin. |
| packages/rspeedy/plugin-react/etc/*.api.md | Update API report type references to new package name. |
| packages/rspeedy/plugin-react/tsconfig*.json | Update TS project references to bundle plugin. |
| packages/rspeedy/plugin-config/src/** | Update type import to @lynx-js/bundle-webpack-plugin. |
| packages/rspeedy/plugin-config/test/**/rspack.config.js | Update test configs to import from @lynx-js/bundle-webpack-plugin. |
| packages/rspeedy/plugin-config/package.json | Swap devDependency to @lynx-js/bundle-webpack-plugin. |
| packages/repl/src/bundler/css-processor.ts | Update comment reference to new bundle plugin path. |
| .coderabbit.yaml | Update path trigger from template plugin to bundle plugin. |
| .changeset/rename-pkg-bundle-webpack-plugin.md | Record breaking rename changeset. |
| .changeset/moody-snakes-study.md | Update changeset package name to @lynx-js/bundle-webpack-plugin. |
| .changeset/allow-debug-url-customize.md | Update changeset package name to @lynx-js/bundle-webpack-plugin. |
Files not reviewed (1)
- pnpm-lock.yaml: Language not supported
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| version: 3.7.0 | ||
| '@rsbuild/plugin-babel': | ||
| specifier: 1.1.0 | ||
| version: 1.1.0(@rsbuild/core@1.7.3) | ||
| version: 1.1.0(@rsbuild/core@2.0.0-beta.3(core-js@3.48.0)) | ||
| '@types/react': |
There was a problem hiding this comment.
pnpm-lock.yaml includes dependency resolution changes unrelated to the package rename (e.g. @rsbuild/plugin-babel now resolved against @rsbuild/core@2.0.0-beta.3). For a rename-only PR, this lockfile drift makes the change set risky and hard to review; please regenerate the lockfile in a way that only captures the intended rename (or split dependency upgrades into a separate PR).
| rsbuild-plugin-tailwindcss@0.2.4(@rsbuild/core@2.0.0-beta.3(core-js@3.48.0))(tailwindcss@3.4.19): | ||
| dependencies: | ||
| tailwindcss: 4.2.1 | ||
| tailwindcss: 3.4.19 | ||
| optionalDependencies: | ||
| '@rsbuild/core': 1.7.3 | ||
| '@rsbuild/core': 2.0.0-beta.3(core-js@3.48.0) | ||
|
|
||
| rsbuild-plugin-tailwindcss@0.2.4(@rsbuild/core@2.0.0-beta.3(core-js@3.48.0))(tailwindcss@3.4.19): | ||
| rsbuild-plugin-tailwindcss@0.2.4(@rsbuild/core@2.0.0-beta.3(core-js@3.48.0))(tailwindcss@4.2.1): | ||
| dependencies: | ||
| tailwindcss: 3.4.19 | ||
| tailwindcss: 4.2.1 |
There was a problem hiding this comment.
This pnpm-lock.yaml hunk also flips the resolved Tailwind version for rsbuild-plugin-tailwindcss (3.4.19 vs 4.2.1), which is unrelated to the package rename and could change behavior. Please ensure the lockfile only reflects the rename (or move Tailwind/Rsbuild upgrades into a dedicated PR).
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
Merging this PR will improve performance by 44.16%
Performance Changes
Comparing Footnotes
|
Web Explorer#8012 Bundle Size — 384.5KiB (0%).f6f28b4(current) vs 0d41253 main#8009(baseline) Bundle metrics
Bundle size by type
|
| Current #8012 |
Baseline #8009 |
|
|---|---|---|
253.55KiB |
253.55KiB |
|
95.85KiB |
95.85KiB |
|
35.1KiB |
35.1KiB |
Bundle analysis report Branch Huxpro/rename-pkg-bundle-webpack... Project dashboard
Generated by RelativeCI Documentation Report issue
Summary
@lynx-js/template-webpack-pluginto@lynx-js/bundle-webpack-pluginpackages/webpack/template-webpack-plugintopackages/webpack/bundle-webpack-pluginBreaking Change
Package name changed. Since this is internal-only (per luhc228), the impact is limited.
Test plan
pnpm installsucceeds