mimic esbuild module transformer #3940
magic-akari
started this conversation in
General
Replies: 2 comments
-
I love the idea, but we should check the specification |
Beta Was this translation helpful? Give feedback.
0 replies
-
Some useful information |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Giving the following input
esbuild output(click bundle button to see result)
It uses var hoist and value getter to achieve a cleaner result.
It does not require manually sync variable assignment to
exports
.I don't know if it is any different from spec behavior.
Beta Was this translation helpful? Give feedback.
All reactions