Skip to content

Update resolve-require-sources.js#1912

Closed
zhennann wants to merge 1 commit intorollup:masterfrom
zhennann:patch-1
Closed

Update resolve-require-sources.js#1912
zhennann wants to merge 1 commit intorollup:masterfrom
zhennann:patch-1

Conversation

@zhennann
Copy link

rollupContext.getModuleInfo(dependencyId) maybe undefined when isWrappedCommonJS is true for node:xxx module

Rollup Plugin Name: @rollup/plugin-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

If yes, then include "BREAKING CHANGES:" in the first commit message body, followed by a description of what is breaking.

List any relevant issue numbers:

Description

`rollupContext.getModuleInfo(dependencyId)` maybe undefined when `isWrappedCommonJS` is true for `node:xxx` module
@shellscape
Copy link
Collaborator

@zhennann thanks for the PR. as the template states, we need a test for this to both demonstrate the issue and prevent regressions. we cannot merge this without a test.

@shellscape
Copy link
Collaborator

Closing as abandoned.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants