mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
build: fix regex for matching imports for umd generation (#7093)
This commit is contained in:
@@ -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`
|
||||
|
||||
Reference in New Issue
Block a user