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.

(cherry picked from commit c890940)
  • Loading branch information
alan-agius4 committed Sep 14, 2023
1 parent 37ee259 commit 39643be
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 39643be

Please sign in to comment.