Skip to content

Commit 33d865d

Browse files
authored
Fix search/replace for CDN bundles (#6474)
1 parent 572e111 commit 33d865d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/firebase/gulpfile.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ gulp.task('cdn-type-module-path', function () {
3333
.pipe(sourcemaps.init({ loadMaps: true }))
3434
// gulp-replace doesn't work with gulp-sourcemaps, so no change is made to the existing sourcemap.
3535
// Therefore the sourcemap become slightly inaccurate
36-
.pipe(replace('@firebase/app', FIREBASE_APP_URL))
36+
.pipe(replace(/(['"])@firebase\/app(['"])/g, `$1${FIREBASE_APP_URL}$2`))
3737
.pipe(sourcemaps.write('.'))
3838
.pipe(gulp.dest('.'))
3939
);

0 commit comments

Comments
 (0)