Skip to content

Commit

Permalink
fix(@ngtools/webpack): allow # in paths
Browse files Browse the repository at this point in the history
  • Loading branch information
Taha-Di-Nero authored and Brocco committed Jan 19, 2018
1 parent f2ea3d1 commit 11fda70
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/@ngtools/webpack/src/angular_compiler_plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -135,9 +135,9 @@ export class AngularCompilerPlugin implements Tapable {
if (!this._entryModule) {
return undefined;
}
const splitted = this._entryModule.split('#');
const splitted = this._entryModule.split(/(#[a-zA-Z_]([\w]+))$/);
const path = splitted[0];
const className = splitted[1] || 'default';
const className = !!splitted[1] ? splitted[1].substring(1) : 'default';
return { path, className };
}

Expand Down

0 comments on commit 11fda70

Please sign in to comment.