We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a6ce9ab commit 5f73a75Copy full SHA for 5f73a75
packages/@ngtools/webpack/src/angular_compiler_plugin.ts
@@ -135,9 +135,9 @@ export class AngularCompilerPlugin implements Tapable {
135
if (!this._entryModule) {
136
return undefined;
137
}
138
- const splitted = this._entryModule.split('#');
+ const splitted = this._entryModule.split(/(#[a-zA-Z_]([\w]+))$/);
139
const path = splitted[0];
140
- const className = splitted[1] || 'default';
+ const className = !!splitted[1] ? splitted[1].substring(1) : 'default';
141
return { path, className };
142
143
0 commit comments