mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
369091839f
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
21 lines
531 B
Diff
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
|
|
+}
|