Skip to content

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.

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.

2 participants