Skip to content

Commit

Permalink
fix(@angular-devkit/build-webpack): also split on multi modules and s…
Browse files Browse the repository at this point in the history
…paces

Its not perfect but it will give a better overview of the file and it
is shorter.
  • Loading branch information
hansl committed Mar 5, 2019
1 parent 0cb7092 commit e6ba05b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ export class ArchitectPlugin {
// This is safe since we still verify it.
const m = module as unknown as { identifier?: () => string };
const moduleId = '' + (typeof m.identifier == 'function' ? m.identifier() : '');
const id = moduleId.split('!').slice(-1)[0].trim();
const id = moduleId.split(/!|\s+|\bmulti\b/).slice(-1)[0].trim();
const p = path.relative(context.workspaceRoot, id);

update(`Building ${p}`);
Expand Down

0 comments on commit e6ba05b

Please sign in to comment.