Skip to content

Commit 9f1142f

Browse files
committed
Add exports to package.json on 6.x branch
This is along the same lines as #6192, but for the 6.x branch. On Angular we're exploring changing our packaging to be based around ES modules and rxjs is currently a blocker, because it doesn't specify the `exports` field on the `package.json` in the 6.x branch like it does in 7.x. These changes add an identical configuration.
1 parent 881cacd commit 9f1142f

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

package.json

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,37 @@
44
"description": "Reactive Extensions for modern JavaScript",
55
"main": "index.js",
66
"sideEffects": false,
7+
"exports": {
8+
".": {
9+
"node": "./index.js",
10+
"default": "./_esm5/index.js"
11+
},
12+
"./ajax": {
13+
"node": "./ajax/index.js",
14+
"default": "./_esm5/ajax/index.js"
15+
},
16+
"./fetch": {
17+
"node": "./fetch/index.js",
18+
"default": "./_esm5/fetch/index.js"
19+
},
20+
"./operators": {
21+
"node": "./operators/index.js",
22+
"default": "./_esm5/operators/index.js"
23+
},
24+
"./testing": {
25+
"node": "./testing/index.js",
26+
"default": "./_esm5/testing/index.js"
27+
},
28+
"./webSocket": {
29+
"node": "./webSocket/index.js",
30+
"default": "./_esm5/webSocket/index.js"
31+
},
32+
"./internal/*": {
33+
"node": "./internal/*.js",
34+
"default": "./_esm5/internal/*.js"
35+
},
36+
"./package.json": "./package.json"
37+
},
738
"config": {
839
"commitizen": {
940
"path": "cz-conventional-changelog"

0 commit comments

Comments
 (0)