Open rainyEra opened 8 months ago
Hello @rainyEra
I believe the problem is caused by the Babel transpilation, since package @babel/plugin-proposal-nullish-coalescing-operator is no longer being used.
However, creating vanilla codes from the new version of codesandbox we no longer have this problem, as @babel/preset-env@babel/preset-env
is being used, which already has this native functionality in ECMAScript.
Hello @rainyEra
I believe the problem is caused by the Babel transpilation, since package @babel/plugin-proposal-nullish-coalescing-operator is no longer being used.
However, creating vanilla codes from the new version of codesandbox we no longer have this problem, as
@babel/preset-env@babel/preset-env
is being used, which already has this native functionality in ECMAScript.
Cool!
🐛 bug report
Preflight Checklist
Description of the problem
Nullish coalescing operator doesn't works in JS vanilla sandbox
How has this issue affected you? What are you trying to accomplish?
I tried to count letters ;p
To Reproduce
https://codesandbox.io/s/holy-framework-dfwmlh?file=/src/index.mjs
Your Environment