Input Source Map in Test Fixture, Loading Source Maps #6073
-
I am currently developing a (will be open source) SWC plugin. I would like to perform some of the tests with input source maps, loaded from source maps that are separated from the transpiled source files (no inline comments with source maps). What is the best way to load a |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 10 replies
-
@kwonoj I think we should provide an API in I'm considering add an option to |
Beta Was this translation helpful? Give feedback.
-
Implemented via #6079 and it will be automatically published once merged. You can pass |
Beta Was this translation helpful? Give feedback.
-
Thanks for this fast reaction. Given the following situation: I have a directory (How) can I use the new feature to
|
Beta Was this translation helpful? Give feedback.
-
What I understand is that SWC takes care of doing the source mapping and produces a corresponding source map. Some more background on what I am trying to do: I would like to do additional transformation based on the source map information in my pass. For example, if the code to transform stems from some |
Beta Was this translation helpful? Give feedback.
Implemented via #6079 and it will be automatically published once merged.
You can pass
FixtureTestConfig { sorucemap: true, ..Default::default() }
totest_fixture
.It will print a url to sourcemap visualizer on failure.