Files
angular__angular/tools/esm-interop/patches/npm/rxjs+6.6.7.patch
Paul Gschwendtner 369091839f build: fix loader and support rxjs to be used in NodeJS ESM (#48521)
RxJS currently ships ESM output that cannot be executed directly
in NodeJS. This is because RxJS ships ESM as `.js` files but does
not have a `package.json` which instructs Node to execute these as ESM.

RxJS would either need to use the explicit `.mjs` extension, or add
a `type: module` `package.json` next to the `.js` sources.

We manually patch RxJS to do this, while we wait on the upstream fix
to land. See: #7130.

PR Close #48521
2022-12-19 19:50:41 +00:00

21 lines
531 B
Diff

diff --git a/node_modules/rxjs/_esm2015/package.json b/node_modules/rxjs/_esm2015/package.json
new file mode 100644
index 0000000..9f2258e
--- /dev/null
+++ b/node_modules/rxjs/_esm2015/package.json
@@ -0,0 +1,4 @@
+{
+ "type": "module",
+ "sideEffects": false
+}
diff --git a/node_modules/rxjs/_esm5/package.json b/node_modules/rxjs/_esm5/package.json
new file mode 100644
index 0000000..9f2258e
--- /dev/null
+++ b/node_modules/rxjs/_esm5/package.json
@@ -0,0 +1,4 @@
+{
+ "type": "module",
+ "sideEffects": false
+}