Skip to content

Commit d925c82

Browse files
committed
Update sourceMap unit test.
Even though the unit test is turned off, it may be useful for people looking at the test cases as examples.
1 parent a4877b8 commit d925c82

File tree

4 files changed

+14
-2
lines changed

4 files changed

+14
-2
lines changed

test/sourceMaps/off.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ module.exports = {
1010
},
1111
module: {
1212
loaders: [
13-
{ test: /\.ts$/, loader: '../../index.js?instance=sourceMapsOff' }
13+
{ test: /\.ts$/, loader: '../../index.js?instance=sourceMapsOff&configFileName=tsconfig.off.json' }
1414
]
1515
}
1616
}

test/sourceMaps/on.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ module.exports = {
1111
devtool: 'source-map',
1212
module: {
1313
loaders: [
14-
{ test: /\.ts$/, loader: '../../index.js?instance=sourceMapsOn&sourceMap' }
14+
{ test: /\.ts$/, loader: '../../index.js?instance=sourceMapsOn&configFileName=tsconfig.on.json' }
1515
]
1616
}
1717
}

test/sourceMaps/tsconfig.off.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"compilerOptions": {
3+
"sourceMap": false
4+
},
5+
"files": []
6+
}

test/sourceMaps/tsconfig.on.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"compilerOptions": {
3+
"sourceMap": true
4+
},
5+
"files": []
6+
}

0 commit comments

Comments
 (0)