Replies: 1 comment 5 replies
-
For ESM, "default" is just a named export that has some different syntax. You can see if you do, for example (without transpiling): let a = 1;
export { a as someName, a as default }; console.log(await import("./that-file")); that |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I just left this note in a file for a graph library, hoping to get some insight to my confusion:
So basically, the original file is:
The ESM rewrite is:
But the babel transpilation is:
Which doesn't function equally.
Beta Was this translation helpful? Give feedback.
All reactions