Skip to content

Commit e1b903b

Browse files
christianscharrhansl
authored andcommitted
fix(@angular/cli): use relative path instead of regex to exclude node_modules (#6870)
1 parent b8d5c5b commit e1b903b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/@angular/cli/tasks/eject.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ class JsonWebpackSerializer {
279279
return v;
280280
} else if (typeof v == 'string') {
281281
if (v === path.join(this._root, 'node_modules')) {
282-
return this._serializeRegExp(/\/node_modules\//);
282+
return this._relativePath('process.cwd()', 'node_modules');
283283
}
284284
return this._relativePath('process.cwd()', path.relative(this._root, v));
285285
} else {

0 commit comments

Comments
 (0)