-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update dev setup to support modern JS syntax #5517
Conversation
test/bench/node.js
Outdated
@@ -1,3 +1,3 @@ | |||
require('reify'); | |||
require('@babel/register'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Noooo not babel register..., please let me debug untranspiled code.... ;)
Just bump to node 14 to ecma script 2020 support.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Node.js does not support our style of module imports (a mix of es modules and commonjs).
reify
was meant to add that support, however it crashes on ECMA 2020 syntax. The module has also not been updated for 2 years.
I have added an explicit option to @babel/register
to only use transforms that are needed by Node 14.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Got it, that is not too bad. FWIW, there is esm
too (reify alternative) it may be more up to date.
Change List
babel-plugin-inline-webgl-constants
removes importtest bench
failure