镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

feat(commonjs)!: revert #1909 and add requireNodeBuiltins option - #1937

Merged
shellscape merged 5 commits into
rollup:masterfrom
sapphi-red:copilot/revert-and-reapply-new-option
Oct 30, 2025
Merged

shellscape merged 5 commits into
rollup:masterfrom
sapphi-red:copilot/revert-and-reapply-new-option

Conversation

@sapphi-red

@sapphi-red sapphi-red commented Oct 29, 2025 •

Copy link
Copy Markdown
Contributor

Rollup Plugin Name: commonjs

This PR contains:

  • bugfix
  • feature
  • refactor
  • documentation
  • other

Are tests included?

  • yes (bugfixes and features will not be merged without tests)
  • no

Breaking Changes?

  • yes (breaking changes will not be merged unless absolutely necessary)
  • no

Marked as Breaking by maintainers: This undoes a change and implements a new direction for a fix that was questionably breaking in a patch version. One of those "it's a bug but in certain situations it could be breaking" fixes. We'll make this a major to avoid any additional pain

List any relevant issue numbers:

resolves #1924
close #1931

Description

An alternative to #1931. Reverts #1909 and add requireNodeBuiltins option that is specific for #1900 as requested.

Copilot AI and others added 4 commits October 26, 2025 16:19
Co-authored-by: sapphi-red <49056869+sapphi-red@users.noreply.github.com>
Co-authored-by: sapphi-red <49056869+sapphi-red@users.noreply.github.com>
Co-authored-by: sapphi-red <49056869+sapphi-red@users.noreply.github.com>
@sapphi-red
sapphi-red marked this pull request as draft October 29, 2025 12:04
Co-authored-by: sapphi-red <49056869+sapphi-red@users.noreply.github.com>
@sapphi-red
sapphi-red marked this pull request as ready for review October 29, 2025 12:13
Comment thread packages/commonjs/README.md Resolved
@shellscape

Copy link
Copy Markdown
Collaborator

@sapphi-red I'm going to mark this as a major just so it's clean. No worries about debates on whether it was breaking or not that way.

@shellscape shellscape changed the title feat(commonjs): revert #1909 and add requireNodeBuiltins option feat(commonjs)!: revert #1909 and add requireNodeBuiltins option Oct 30, 2025
@shellscape
shellscape merged commit d2b14ed into rollup:master Oct 30, 2025
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[@rollup/plugin-commonjs] import { createRequire } from 'node:module' is injected automatically, breaking codes for edge runtimes

3 participants