Skip to content

Commit 5f73a75

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

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: packages/@ngtools/webpack/src/angular_compiler_plugin.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -135,9 +135,9 @@ export class AngularCompilerPlugin implements Tapable {
135135
if (!this._entryModule) {
136136
return undefined;
137137
}
138-
const splitted = this._entryModule.split('#');
138+
const splitted = this._entryModule.split(/(#[a-zA-Z_]([\w]+))$/);
139139
const path = splitted[0];
140-
const className = splitted[1] || 'default';
140+
const className = !!splitted[1] ? splitted[1].substring(1) : 'default';
141141
return { path, className };
142142
}
143143

0 commit comments

Comments
 (0)