Skip to content

Commit 61b7393

Browse files
committed
fix: fix sourcemap of dumber browser test
1 parent 071e5e3 commit 61b7393

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

dumber/gulpfile.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,12 @@ function build() {
203203
// https://github.com/terser-js/terser#terser-fast-minify-mode
204204
// It's a good balance on size and speed to turn off compress.
205205
.pipe(gulpif(isProduction, terser({compress: false})))
206+
// @if !jasmine && !mocha && !tape
206207
.pipe(gulp.dest(dist, {sourcemaps: isProduction ? false : '.'}));
208+
// @endif
209+
// @if jasmine || mocha || tape
210+
.pipe(gulp.dest(dist, {sourcemaps: isProduction ? false : (isTest ? true : '.')}));
211+
// @endif
207212
}
208213

209214
function clean() {

0 commit comments

Comments
 (0)