Skip to content

Commit

Permalink
fix(@angular-devkit/build-angular): correctly re-point RXJS to ESM on…
Browse files Browse the repository at this point in the history
… Windows

Previously, the path matching and replacement did not consider non posix file systems like windows.
  • Loading branch information
alan-agius4 committed Sep 14, 2023
1 parent 6a97d41 commit c890940
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export function createRxjsEsmResolutionPlugin(): Plugin {
resolveDir,
});

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

return result;
});
Expand Down

0 comments on commit c890940

Please sign in to comment.