Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign up[transform-modules-systemjs] top level this not mapped to undefined #10775
Labels
Comments
This comment has been minimized.
This comment has been minimized.
Hey @LarsDenBakker! We really appreciate you taking the time to report an issue. The collaborators on this project attempt to help as many people as possible, but we're a limited number of volunteers, so it's possible this won't be addressed swiftly. If you need any help, or just have general Babel or JavaScript questions, we have a vibrant Slack community that typically always has someone willing to help. You can sign-up here for an invite." |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Bug Report
Current Behavior
When using
@babel/plugin-transform-modules-systemjs
the top levelthis
is not mapped toundefined
.When using
@babel/plugin-transform-modules-commonjs
it is mapped correctly tovoid 0
.Reproduction
SystemJS (incorrect):
https://babeljs.io/repl#?babili=false&browsers=chrome%2078&build=&builtIns=false&spec=false&loose=false&code_lz=BQMwrgdgxgLglgewgAmAJwQmBKZBvAKGWSiQGcEAbAUwDpKEBzYAcgywC5kWAaZdnAG4CAX2zAYACzhlkAHznIA7nAgATBEuyCgA&debug=false&forceAllTransforms=false&shippedProposals=true&circleciRepo=&evaluate=false&fileSize=false&timeTravel=false&sourceType=module&lineWrap=false&presets=&prettier=false&targets=&version=7.7.4&externalPlugins=%40babel%2Fplugin-transform-modules-systemjs%407.7.4
CommonJS (correct): https://babeljs.io/repl#?babili=false&browsers=chrome%2078&build=&builtIns=false&spec=false&loose=false&code_lz=BQMwrgdgxgLglgewgAmAJwQmBKZBvAKGWSiQGcEAbAUwDpKEBzYAcgywC5kWAaZdnAG4CAX2zAYACzhlkAHznIA7nAgATBEuyCgA&debug=false&forceAllTransforms=false&shippedProposals=true&circleciRepo=&evaluate=false&fileSize=false&timeTravel=false&sourceType=module&lineWrap=false&presets=&prettier=false&targets=&version=7.7.4&externalPlugins=%40babel%2Fplugin-transform-modules-commonjs%407.7.4
Expected behavior/code