Does SWC Respect an Initial Source Map? #6108
-
|
SWC can be applied to files that already have a source map (either inlined or as an external file). Is this mapping information maintained throughout all transformation passes of chained plugins? I hope nobody is offended too much by all the questions regarding source maps :-D Thanks in advance. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
|
Minimizing a file that contained an initial source map with the swc config fragment results in a minimized version with an empty source map, that is, with which can be decoded to |
Beta Was this translation helpful? Give feedback.
-
|
To contribute, it would be helpful for me to know where I can find unit/integration/system tests that test this functionality in the code base. |
Beta Was this translation helpful? Give feedback.
-
|
Using this (which I generated from TS playground), it seems the input sourcemap is maintained throughout the plugins. It seems it does not propagate the |
Beta Was this translation helpful? Give feedback.
Using this (which I generated from TS playground), it seems the input sourcemap is maintained throughout the plugins.
It seems it does not propagate the
sourcesContentfield (instead, it uses the content input into SWC).