babel / babel/website

`plugin-transform-modules-commonjs` docs do not mention that `import`s transformed into `require`s are hoisted

Open
#2,127 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
777
Forks
1.4k
Avg merge
16h 45m
Merged PRs (30d)
3

Description

I just ran into this in setting up a testing environment with some older code that relies on globals as the plugin is recommended by the Jest documentation.

I know that this aligns with the spec but it might be nice to have a warning message.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.