Repository navigation
fix(bundle): don't use createRequire when targeting browser in Deno.bundle - #31534
Conversation
WalkthroughThis pull request modifies the bundle provider to conditionally apply Shim replacement based on platform and introduces a new test suite for browser platform bundling. The provider logic now computes whether Shim replacement should occur using platform-derived logic instead of a hardcoded boolean. A new test specification includes both API and CLI test cases that bundle a CommonJS module targeting the browser platform and verify that the Pre-merge checks and finishing touches❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (5)
🧰 Additional context used📓 Path-based instructions (5)**/*.{ts,tsx,js}📄 CodeRabbit inference engine (CLAUDE.md)
Files:
tests/specs/**/__test__.jsonc📄 CodeRabbit inference engine (CLAUDE.md)
Files:
tests/specs/**/{__test__.jsonc,*.out}📄 CodeRabbit inference engine (CLAUDE.md)
Files:
cli/tools/**/*.rs📄 CodeRabbit inference engine (CLAUDE.md)
Files:
**/*.rs📄 CodeRabbit inference engine (CLAUDE.md)
Files:
⚙️ CodeRabbit configuration file
Files:
🧠 Learnings (3)📚 Learning: 2025-11-24T16:19:37.808ZApplied to files:
📚 Learning: 2025-11-24T16:19:37.808ZApplied to files:
📚 Learning: 2025-11-24T16:19:37.808ZApplied to files:
🧬 Code graph analysis (1)cli/tools/bundle/provider.rs (1)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (8)
🔇 Additional comments (5)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Fixes #31524
Missed a code path in the original fix