Skip to content
This repository was archived by the owner on May 4, 2020. It is now read-only.

Commit d1e630d

Browse files
authored
chore: emit type declaration source map during build (#614)
Emitting type declaration source map allows using "Go to definition" on other sub-package import to go to source code directly, instead of the emitted type declaration files.
1 parent d29d588 commit d1e630d

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

.vscode/settings.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,7 @@
55
"**/node_modules/*/**": true,
66
"test262/**": true,
77
"**/test_artifacts/**": true,
8+
"**/*.map": true,
9+
"**/*.d.ts.map": true,
810
}
911
}

packages/intl-messageformat/.npmignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,5 @@ tests/
77
coverage
88
*.config.js
99
tsconfig.*
10-
.nyc_output
10+
.nyc_output
11+
*.d.ts.map

tsconfig.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
"noUnusedLocals": true,
1111
"noUnusedParameters": true,
1212
"preserveConstEnums": true,
13+
"declarationMap": true,
14+
"sourceMap": true,
1315
"types": [
1416
"babel__core",
1517
"babel__generator",
@@ -30,4 +32,4 @@
3032
"yargs"
3133
]
3234
}
33-
}
35+
}

0 commit comments

Comments
 (0)