plugins icon indicating copy to clipboard operation
plugins copied to clipboard

test(commonjs): top-level `this` behavior when `option.context` is defined

Open situ2001 opened this issue 4 months ago • 1 comments

….context` is defined

Rollup Plugin Name: {name}

This PR contains:

  • [ ] bugfix
  • [ ] feature
  • [ ] refactor
  • [ ] documentation
  • [x] other

Are tests included?

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

Breaking Changes?

  • [ ] yes (breaking changes will not be merged unless absolutely necessary)
  • [x] 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

Add this test to confirm how option.context in Rollup interacts with commonjs module, since I want to add option.context for Rolldown.

Reference to the issue: https://github.com/rolldown/rolldown/issues/5316

situ2001 avatar Aug 02 '25 12:08 situ2001

@situ2001 I see fixtures and snapshots but no test file update

shellscape avatar Sep 04 '25 13:09 shellscape