-
Notifications
You must be signed in to change notification settings - Fork 710
Labels
Description
Reproduction link or steps
https://github.com/9romise/rolldown-cjs-issue
- pnpm install
- pnpm run test
What is expected?
No error
What is actually happening?
This looks similar to #5930
When I require a JSON file in a CJS file and bundle it, an error is thrown.
TypeError: require_config$1.default is not a function
System Info
System:
OS: macOS 26.2
CPU: (12) arm64 Apple M4 Pro
Memory: 96.89 MB / 24.00 GB
Shell: 5.9 - /bin/zsh
Binaries:
Node: 22.19.0 - /Users/vida/.nvm/versions/node/v22.19.0/bin/node
npm: 10.9.3 - /Users/vida/.nvm/versions/node/v22.19.0/bin/npm
pnpm: 10.22.0 - /Users/vida/.nvm/versions/node/v22.19.0/bin/pnpm
Browsers:
Chrome: 142.0.7444.176
Safari: 26.2
npmPackages:
rolldown: 1.0.0-beta.51 => 1.0.0-beta.51Any additional comments?
No response
Reactions are currently unavailable