Replies: 2 comments 1 reply
-
cc @marco-ippolito @robpalme Thoughts? |
Beta Was this translation helpful? Give feedback.
0 replies
-
There's a few problems with this.
I don't believe it's possible to reconcile this. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Currently Node.js type stripping does not support enums because it would need sourcemaps to do so.
What is the enums definitions were added at the top of the file?
swc would then remove the first \n of the file, so only the source mappings of the first line would be wrong, which would contain only imports anyway most of the time.
Here is an example:
Before
After
@kdy1
Beta Was this translation helpful? Give feedback.
All reactions