Skip to content

Commit 13b33ab

Browse files
mikehardyberickson1
authored andcommitted
Fix TodoList sample build in release mode (#1163)
If a build using this file was attempted in release mode, it attempted to reference variables that did not exist, and unassert() method which similarly did not exist
1 parent 1a924ac commit 13b33ab

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

samples/TodoList/gulpfile.js

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -420,13 +420,6 @@ gulp.task('compile-rn', function () {
420420
.pipe(enableSrcMaps ? sourcemaps.init() : gutil.noop())
421421
.pipe(tsProject());
422422

423-
var shouldAssert = isDevEnv || (!isCandidateBuild && !isPublicRelease && !isInsidersRelease);
424-
if (!shouldAssert) {
425-
stream = stream
426-
.pipe(unassert());
427-
}
428-
429-
// must run after unassert
430423
if (enableSrcMaps) {
431424
stream = stream.pipe(sourcemaps.write('.',
432425
{ sourceRoot: path.join(process.cwd(), config.ts.srcRoot) }));

0 commit comments

Comments
 (0)