Skip to content

Commit

Permalink
Add source map samples
Browse files Browse the repository at this point in the history
  • Loading branch information
mstoykov committed Jan 24, 2022
1 parent 41efd8d commit 34f899c
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 0 deletions.
11 changes: 11 additions & 0 deletions samples/source_map/issue_1804/imported.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
export function f1() {
throw "line 2";
}

export function f2() {
throw "line 6";
}

export function f3() {
throw "line 10";
}
5 changes: 5 additions & 0 deletions samples/source_map/issue_1804/main.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import { f2 } from "./imported.js"

export default function() {
f2();
}
2 changes: 2 additions & 0 deletions samples/source_map/typescript_template/test1.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions samples/source_map/typescript_template/test1.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
function coolThrow(s: string) {
throw "cool "+ s
}
export default () => {
coolThrow("is cool")
};

0 comments on commit 34f899c

Please sign in to comment.