Skip to content

Conversation

@CompuIves
Copy link
Member

Similar to how we should nowadays prioritize module over main, we should also prioritize import over require. It will be a bit slower (as we need to transpile esmodules to commonjs to run it in the browser), but these days all bundlers prioritize esmodules over commonjs, and so not defaulting to it on CSB introduces some subtle bugs.

@codesandbox
Copy link

codesandbox bot commented Jan 10, 2025

Review or Edit in CodeSandbox

Open the branch in Web EditorVS CodeInsiders

Open Preview

Copy link
Member

@DeMoorJasper DeMoorJasper left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@CompuIves CompuIves merged commit b0b2a77 into master Jan 11, 2025
11 of 15 checks passed
@CompuIves CompuIves deleted the fix/bundler-resolving branch January 11, 2025 13:13
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.

3 participants