Skip to content

Commit 2a99ac0

Browse files
Joel Cogenimhoffd
Joel Cogen
authored andcommitted
fix(cordova-build): only set sourceMap if specified (#107)
1 parent 97e1a69 commit 2a99ac0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

builders/cordova-build/index.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,9 @@ export class CordovaBuildBuilder implements Builder<CordovaBuildBuilderSchema> {
4747
prepareBrowserConfig(options: CordovaBuildBuilderSchema, browserOptions: BrowserBuilderSchema) {
4848
const cordovaBasePath = normalize(options.cordovaBasePath ? options.cordovaBasePath : '.');
4949

50-
browserOptions.sourceMap = options.sourceMap as any;
50+
if (typeof options.sourceMap !== 'undefined') {
51+
browserOptions.sourceMap = options.sourceMap as any;
52+
}
5153

5254
// We always need to output the build to `www` because it is a hard
5355
// requirement of Cordova.

0 commit comments

Comments
 (0)