Skip to content

Commit

Permalink
fix: remove node export map entries
Browse files Browse the repository at this point in the history
These entries cause node to resolve to commonjs in all cases, rather
than respecting the consumer's module `type`.

For example, a consumer with `"type": "module"` will still resolve to
the commonjs entrypoint since node will choose the `node` entry before
the `default` entry.
  • Loading branch information
43081j committed Dec 28, 2023
1 parent 6c2c59f commit c128358
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions packages/rxjs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,43 +16,36 @@
"exports": {
".": {
"types": "./dist/types/index.d.ts",
"node": "./dist/cjs/index.js",
"require": "./dist/cjs/index.js",
"default": "./dist/esm/index.js"
},
"./ajax": {
"types": "./dist/types/ajax/index.d.ts",
"node": "./dist/cjs/ajax/index.js",
"require": "./dist/cjs/ajax/index.js",
"default": "./dist/esm/ajax/index.js"
},
"./fetch": {
"types": "./dist/types/fetch/index.d.ts",
"node": "./dist/cjs/fetch/index.js",
"require": "./dist/cjs/fetch/index.js",
"default": "./dist/esm/fetch/index.js"
},
"./operators": {
"types": "./dist/types/operators/index.d.ts",
"node": "./dist/cjs/operators/index.js",
"require": "./dist/cjs/operators/index.js",
"default": "./dist/esm/operators/index.js"
},
"./testing": {
"types": "./dist/types/testing/index.d.ts",
"node": "./dist/cjs/testing/index.js",
"require": "./dist/cjs/testing/index.js",
"default": "./dist/esm/testing/index.js"
},
"./webSocket": {
"types": "./dist/types/webSocket/index.d.ts",
"node": "./dist/cjs/webSocket/index.js",
"require": "./dist/cjs/webSocket/index.js",
"default": "./dist/esm/webSocket/index.js"
},
"./internal/*": {
"types": "./dist/types/internal/*.d.ts",
"node": "./dist/cjs/internal/*.js",
"require": "./dist/cjs/internal/*.js",
"default": "./dist/esm/internal/*.js"
},
Expand Down

0 comments on commit c128358

Please sign in to comment.