Skip to content

Conversation

@sapphi-red
Copy link
Contributor

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

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.

@sapphi-red sapphi-red marked this pull request as draft October 29, 2025 12:04
@sapphi-red sapphi-red marked this pull request as ready for review October 29, 2025 12:13
@shellscape
Copy link
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

2 participants