diff options
author | Alex Lam S.L <alexlamsl@gmail.com> | 2017-02-25 04:11:21 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-02-25 04:11:21 +0800 |
commit | cf0951f72635f898ef9dc98ced3c73a1c488cc17 (patch) | |
tree | 897ca02e307df414ecce5c56958dba4a1e741536 /test/input/issue-520 | |
parent | 852f78491a212ba20841847436dab93abb0a8181 (diff) | |
download | tracifyjs-cf0951f72635f898ef9dc98ced3c73a1c488cc17.tar.gz tracifyjs-cf0951f72635f898ef9dc98ced3c73a1c488cc17.zip |
allow --in-source-map inline (#1490)
- limited to one input file (or `stdin`)
- only works with built-in parser
fixes #520
Diffstat (limited to 'test/input/issue-520')
-rw-r--r-- | test/input/issue-520/input.js | 3 | ||||
-rw-r--r-- | test/input/issue-520/output.js | 2 |
2 files changed, 5 insertions, 0 deletions
diff --git a/test/input/issue-520/input.js b/test/input/issue-520/input.js new file mode 100644 index 00000000..62428a52 --- /dev/null +++ b/test/input/issue-520/input.js @@ -0,0 +1,3 @@ +var Foo = function Foo(){console.log(1+2);}; new Foo(); + +//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjpudWxsLCJzb3VyY2VzIjpbInN0ZGluIl0sInNvdXJjZXNDb250ZW50IjpbImNsYXNzIEZvbyB7IGNvbnN0cnVjdG9yKCl7Y29uc29sZS5sb2coMSsyKTt9IH0gbmV3IEZvbygpO1xuIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLElBQU0sR0FBRyxHQUFDLEFBQUUsWUFBVyxFQUFFLENBQUMsT0FBTyxDQUFDLEdBQUcsQ0FBQyxDQUFDLENBQUMsQ0FBQyxDQUFDLENBQUMsQ0FBQyxDQUFBLEFBQUUsQ0FBQyxJQUFJLEdBQUcsRUFBRSxDQUFDOyJ9 diff --git a/test/input/issue-520/output.js b/test/input/issue-520/output.js new file mode 100644 index 00000000..8d19855b --- /dev/null +++ b/test/input/issue-520/output.js @@ -0,0 +1,2 @@ +new function(){console.log(3)}; +//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInN0ZGluIl0sIm5hbWVzIjpbImNvbnNvbGUiLCJsb2ciXSwibWFwcGluZ3MiOiJBQUErQyxHQUFyQyxZQUFnQkEsUUFBUUMsSUFBSSIsInNvdXJjZXNDb250ZW50IjpbImNsYXNzIEZvbyB7IGNvbnN0cnVjdG9yKCl7Y29uc29sZS5sb2coMSsyKTt9IH0gbmV3IEZvbygpO1xuIl19 |