Skip to content

Commit

Permalink
fix(cordova-build): only set sourceMap if specified (#107)
Browse files Browse the repository at this point in the history
  • Loading branch information
Joel Cogen authored and imhoffd committed Apr 9, 2019
1 parent 97e1a69 commit 2a99ac0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion builders/cordova-build/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,9 @@ export class CordovaBuildBuilder implements Builder<CordovaBuildBuilderSchema> {
prepareBrowserConfig(options: CordovaBuildBuilderSchema, browserOptions: BrowserBuilderSchema) {
const cordovaBasePath = normalize(options.cordovaBasePath ? options.cordovaBasePath : '.');

browserOptions.sourceMap = options.sourceMap as any;
if (typeof options.sourceMap !== 'undefined') {
browserOptions.sourceMap = options.sourceMap as any;
}

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

0 comments on commit 2a99ac0

Please sign in to comment.