Skip to content

Commit

Permalink
feat: add "exports" maps for native ESM support
Browse files Browse the repository at this point in the history
  • Loading branch information
lukeed committed May 23, 2021
1 parent f44d91d commit de206c3
Show file tree
Hide file tree
Showing 9 changed files with 63 additions and 0 deletions.
7 changes: 7 additions & 0 deletions packages/cluster/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,13 @@
"types": "index.d.ts",
"main": "build.js",
"license": "MIT",
"exports": {
".": {
"import": "./build.mjs",
"require": "./build.js"
},
"./package.json": "./package.json"
},
"files": [
"*.d.ts",
"build.*"
Expand Down
7 changes: 7 additions & 0 deletions packages/compat/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,13 @@
"module": "build.mjs",
"main": "build.js",
"license": "MIT",
"exports": {
".": {
"import": "./build.mjs",
"require": "./build.js"
},
"./package.json": "./package.json"
},
"files": [
"build.*"
],
Expand Down
7 changes: 7 additions & 0 deletions packages/parse/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,13 @@
"types": "index.d.ts",
"main": "build.js",
"license": "MIT",
"exports": {
".": {
"import": "./build.mjs",
"require": "./build.js"
},
"./package.json": "./package.json"
},
"files": [
"*.d.ts",
"build.*"
Expand Down
7 changes: 7 additions & 0 deletions packages/polka/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,13 @@
"types": "index.d.ts",
"main": "build.js",
"license": "MIT",
"exports": {
".": {
"import": "./build.mjs",
"require": "./build.js"
},
"./package.json": "./package.json"
},
"files": [
"*.d.ts",
"build.*"
Expand Down
7 changes: 7 additions & 0 deletions packages/redirect/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,13 @@
"types": "index.d.ts",
"main": "build.js",
"license": "MIT",
"exports": {
".": {
"import": "./build.mjs",
"require": "./build.js"
},
"./package.json": "./package.json"
},
"files": [
"*.d.ts",
"build.*"
Expand Down
7 changes: 7 additions & 0 deletions packages/send/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,13 @@
"types": "index.d.ts",
"main": "build.js",
"license": "MIT",
"exports": {
".": {
"import": "./build.mjs",
"require": "./build.js"
},
"./package.json": "./package.json"
},
"files": [
"*.d.ts",
"build.*"
Expand Down
7 changes: 7 additions & 0 deletions packages/sendfile/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,13 @@
"module": "build.mjs",
"main": "build.js",
"license": "MIT",
"exports": {
".": {
"import": "./build.mjs",
"require": "./build.js"
},
"./package.json": "./package.json"
},
"files": [
"build.*"
],
Expand Down
7 changes: 7 additions & 0 deletions packages/url/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,13 @@
"types": "index.d.ts",
"main": "build.js",
"license": "MIT",
"exports": {
".": {
"import": "./build.mjs",
"require": "./build.js"
},
"./package.json": "./package.json"
},
"files": [
"*.d.ts",
"build.*"
Expand Down
7 changes: 7 additions & 0 deletions packages/uws/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,13 @@
"module": "build.mjs",
"main": "build.js",
"license": "MIT",
"exports": {
".": {
"import": "./build.mjs",
"require": "./build.js"
},
"./package.json": "./package.json"
},
"files": [
"build.*"
],
Expand Down

0 comments on commit de206c3

Please sign in to comment.