-
-
Notifications
You must be signed in to change notification settings - Fork 374
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sourceMap.content "auto" option #298
Changes from 6 commits
3905ead
4fb781c
eb56dde
61f068e
09b25f2
0a61ef7
e21dc0a
ff52308
b9e7bb0
37c0bad
0b4f2f0
b73de80
cbd278d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#!/usr/bin/env sh | ||
|
||
tsc --sourceMap --inlineSources file.ts | ||
sed -i '' 's/file/mapping/g' file.js | ||
mv file.js.map mapping.js.map | ||
|
||
tsc --sourceMap --inlineSources file.ts --out file2.js | ||
sed -i '' 's/file2/mapping2/g' file2.js | ||
sed -i '' -e '$ d' file2.js | ||
mv file2.js.map mapping2.js.map | ||
|
||
tsc --sourceMap --inlineSources file.ts --out file3.js | ||
sed -i '' 's/file3/mapping2/g' file3.js | ||
sed -i '' -e '$ d' file3.js | ||
mv file3.js.map mapping2.js.map | ||
|
||
tsc --inlineSourceMap --inlineSources inline.ts | ||
|
||
tsc --sourceMap --inlineSources infer1.ts | ||
sed -i '' -e '$ d' infer1.js | ||
|
||
tsc --sourceMap --inlineSources infer2.ts | ||
sed -i '' -e '$ d' infer2.js | ||
mv infer2.js.map infer2.map |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
interface ICar { | ||
model: string | ||
speed: number | ||
cost: number | ||
} | ||
|
||
class Car implements ICar { | ||
model: string = 'nice' | ||
speed: number = 100 | ||
cost: number = 1000000 | ||
} | ||
|
||
var myCar: Car = new Car() | ||
myCar.cost += 1 | ||
|
||
const [blah, blah2] = [1,2] |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
var Car = /** @class */ (function () { | ||
function Car() { | ||
this.model = 'nice'; | ||
this.speed = 100; | ||
this.cost = 1000000; | ||
} | ||
return Car; | ||
}()); | ||
var myCar = new Car(); | ||
myCar.cost += 1; | ||
var _a = [1, 2], blah = _a[0], blah2 = _a[1]; |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
var Car = /** @class */ (function () { | ||
function Car() { | ||
this.model = 'nice'; | ||
this.speed = 100; | ||
this.cost = 1000000; | ||
} | ||
return Car; | ||
}()); | ||
var myCar = new Car(); | ||
myCar.cost += 1; | ||
var _a = [1, 2], blah = _a[0], blah2 = _a[1]; |
Large diffs are not rendered by default.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
console.log('infer1.js'); |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
console.log('infer1.js'); |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
console.log('infer2.js'); |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
console.log('infer2.js'); |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I had to remove this to get the tests that expect errors to work. I can't reason about this code or how to augment it - ideas?