Repository navigation
feat: add webpack support - #381
Conversation
|
|
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
|
All alerts resolved. Learn more about Socket for GitHub. This PR previously contained dependency changes with security issues that have been resolved, removed, or ignored. |
There was a problem hiding this comment.
Pull request overview
Adds Webpack support to the unplugin-swc package by documenting the swc.webpack() adapter, introducing Webpack 5 as a dev dependency, and adding an integration test that exercises Webpack’s Node API with TS transform + tsconfig target handling + extensionless relative imports.
Changes:
- Document
swc.webpack()usage inREADME.mdand clarify minification support limitations. - Add a Webpack Node API integration test and corresponding fixture sources/tsconfig.
- Add
webpackas a dev dependency (and update lockfile).
Reviewed changes
Copilot reviewed 6 out of 7 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| test/index.test.ts | Adds a Webpack integration test that builds a TS entry and asserts TS syntax is removed and target transforms apply. |
| test/fixtures/webpack/tsconfig.json | Provides a fixture tsconfig with target: es5 to validate target handling. |
| test/fixtures/webpack/message.ts | Fixture TS module containing a type annotation to validate stripping. |
| test/fixtures/webpack/index.ts | Fixture TS entry using extensionless import and optional chaining to validate resolution + downleveling. |
| README.md | Documents Webpack usage and clarifies minification behavior across bundlers. |
| package.json | Adds Webpack 5 as a development dependency. |
| pnpm-lock.yaml | Updates lockfile to include Webpack and new transitive dependencies. |
Files not reviewed (1)
- pnpm-lock.yaml: Generated file
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
05dc38d to
81fe937
Compare
81fe937 to
f6f398e
Compare
f6f398e to
417791a
Compare
|
🎉 This PR is included in version 1.6.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Summary
swc.webpack()adapterValidation
pnpm test --runpnpm lintpnpm type-checkpnpm buildCloses #94