Skip to content

Commit b8218e1

Browse files
jelbournmmalerba
authored andcommitted
build: fix regex for matching imports for umd generation (#7093)
1 parent 2730fe0 commit b8218e1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/package-tools/build-bundles.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ export class PackageBundler {
147147
// secondary entry-points from the rollup globals because we want the UMD for this package
148148
// to include *all* of the sources for those entry-points.
149149
if (this.buildPackage.exportsSecondaryEntryPointsAtRoot) {
150-
const importRegex = new RegExp(`@angular/${this.buildPackage.name}/.+`, 'g');
150+
const importRegex = new RegExp(`@angular/${this.buildPackage.name}/.+`);
151151
external = external.filter(e => !importRegex.test(e));
152152

153153
// Use the rollup-alias plugin to map imports of the form `@angular/material/button`

0 commit comments

Comments
 (0)