From cf0951f72635f898ef9dc98ced3c73a1c488cc17 Mon Sep 17 00:00:00 2001 From: "Alex Lam S.L" Date: Sat, 25 Feb 2017 04:11:21 +0800 Subject: allow --in-source-map inline (#1490) - limited to one input file (or `stdin`) - only works with built-in parser fixes #520 --- test/input/issue-520/input.js | 3 +++ test/input/issue-520/output.js | 2 ++ 2 files changed, 5 insertions(+) create mode 100644 test/input/issue-520/input.js create mode 100644 test/input/issue-520/output.js (limited to 'test/input/issue-520') 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 -- cgit v1.2.3