build: fix regex for matching imports for umd generation (#7093)

This commit is contained in:
Jeremy Elbourn
2017-09-14 17:10:46 -07:00
committed by mmalerba
parent 2730fe0337
commit b8218e1489
+1 -1
View File
@@ -147,7 +147,7 @@ export class PackageBundler {
// secondary entry-points from the rollup globals because we want the UMD for this package
// to include *all* of the sources for those entry-points.
if (this.buildPackage.exportsSecondaryEntryPointsAtRoot) {
const importRegex = new RegExp(`@angular/${this.buildPackage.name}/.+`, 'g');
const importRegex = new RegExp(`@angular/${this.buildPackage.name}/.+`);
external = external.filter(e => !importRegex.test(e));
// Use the rollup-alias plugin to map imports of the form `@angular/material/button`