Skip to content

Commit f5dc2d6

Browse files
authored
Fix sourcemap option, so compiled output includes sourceMappingUrl (#12)
* Change source map option from external to true * Simply if statement * Update index.ts * Update index.ts
1 parent 7913595 commit f5dc2d6

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/index.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,15 +42,11 @@ function esBuildSourceMapOptions(tsConfig: TSConfig) {
4242
return false;
4343
}
4444

45-
if ((inlineSources && sourceMap) || sourceMap) {
46-
return "external";
47-
}
48-
4945
if (inlineSourceMap) {
5046
return "inline";
5147
}
5248

53-
return false;
49+
return sourceMap;
5450
}
5551

5652
function getBuildMetadata(userConfig: Config) {

0 commit comments

Comments
 (0)