Skip to content

Commit c890940

Browse files
committed
fix(@angular-devkit/build-angular): correctly re-point RXJS to ESM on Windows
Previously, the path matching and replacement did not consider non posix file systems like windows.
1 parent 6a97d41 commit c890940

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/angular_devkit/build_angular/src/tools/esbuild/rxjs-esm-resolution-plugin.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ export function createRxjsEsmResolutionPlugin(): Plugin {
3939
resolveDir,
4040
});
4141

42-
result.path = result.path.replace('/dist/cjs/', '/dist/esm/');
42+
result.path = result.path.replace(/([\\/]dist[\\/])cjs([\\/])/, '$1esm$2');
4343

4444
return result;
4545
});

0 commit comments

Comments
 (0)