Skip to content

Commit 3642605

Browse files
dinerotahBrocco
authored andcommitted
fix(@ngtools/webpack): allow # in paths
1 parent 1368990 commit 3642605

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/@ngtools/webpack/src/angular_compiler_plugin.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,9 +134,9 @@ export class AngularCompilerPlugin implements Tapable {
134134
if (!this._entryModule) {
135135
return undefined;
136136
}
137-
const splitted = this._entryModule.split('#');
137+
const splitted = this._entryModule.split(/(#[a-zA-Z_]([\w]+))$/);
138138
const path = splitted[0];
139-
const className = splitted[1] || 'default';
139+
const className = !!splitted[1] ? splitted[1].substring(1) : 'default';
140140
return { path, className };
141141
}
142142

0 commit comments

Comments
 (0)