Skip to content

chore: remove unused rollup plugin devDependencies#285

Merged
limonte merged 3 commits intomainfrom
copilot/remove-unused-npm-dependencies
Mar 15, 2026
Merged

chore: remove unused rollup plugin devDependencies#285
limonte merged 3 commits intomainfrom
copilot/remove-unused-npm-dependencies

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Mar 15, 2026

Three rollup plugins were listed as devDependencies and used in rollup.config.js but had no actual effect on the build output.

  • @rollup/plugin-replace — configured to replace process.env.NODE_ENV, but the source never references it and react/react-dom are declared external so they're never bundled
  • @rollup/plugin-commonjs — no CommonJS require() in source; all npm deps are external
  • @rollup/plugin-node-resolve — all node_modules imports (react, react-dom/client) are external and never resolved during bundling

Result: rollup.config.js reduces to just @rollup/plugin-babel + @rollup/plugin-terser:

// before
const plugins = [
  replace({ 'process.env.NODE_ENV': JSON.stringify('production'), preventAssignment: true }),
  nodeResolve(),
  commonjs(),
  babel({ babelHelpers: 'bundled', exclude: 'node_modules/**' }),
]

// after
const plugins = [
  babel({ babelHelpers: 'bundled', exclude: 'node_modules/**' }),
]

💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI and others added 2 commits March 15, 2026 20:41
Co-authored-by: limonte <6059356+limonte@users.noreply.github.com>
Co-authored-by: limonte <6059356+limonte@users.noreply.github.com>
@limonte limonte marked this pull request as ready for review March 15, 2026 20:45
Copilot AI changed the title [WIP] Remove unused npm dependencies chore: remove unused rollup plugin devDependencies Mar 15, 2026
Copilot AI requested a review from limonte March 15, 2026 20:45
@limonte limonte merged commit 3fb0363 into main Mar 15, 2026
1 check passed
@limonte limonte deleted the copilot/remove-unused-npm-dependencies branch March 15, 2026 20:46
github-actions bot pushed a commit that referenced this pull request Mar 15, 2026
## [5.1.2](v5.1.1...v5.1.2) (2026-03-15)

### Bug Fixes

* remove unused rollup plugin devDependencies ([#285](#285)) ([3fb0363](3fb0363))
@github-actions
Copy link
Copy Markdown

🎉 This PR is included in version 5.1.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants