swc/tests/fixture/issue-1713/case1/input/index.js
강동윤 5a6c4fd5a0
fix(swc): Fix sourcemap (#1832)
swc_common:
 - `SourceMap`: Don't panic for dummy spans.

swc_ecma_codegen:
 - Use span for `throw`. (#1685)
 - Use span for `var` / `let` / `const`.
 - Use span for `new`.
 - Use span for `if`.
 - Add spans to braces of a block statement. (#1796)

swc_ecma_transforms_compat:
 - `parameters`: Don't drop the span of block statements. (#1796)

swc:
 - Allow specifying input source map in `.swcrc`.
 - Ensure that the inline source map works properly. (#1713)
2021-06-18 11:34:17 +00:00

4 lines
406 B
JavaScript

var foo = /*#__PURE__*/ React.createElement("h1", null, bar);
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi9Vc2Vycy9rZHkxL3Byb2plY3RzL3N3Yy1idWdzL3Rlc3RzL2ZpeHR1cmUvaXNzdWUtMTcyNi9jYXNlMS9pbnB1dC9pbmRleC50c3giXSwic291cmNlc0NvbnRlbnQiOlsiY29uc3QgZm9vID0gPGgxPntiYXJ9PC9oMT4iXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsR0FBSyxDQUFDLEdBQUcsc0NBQUksRUFBRSxTQUFFLEdBQUcifQ==