Skip to content

Commit ff0f3b6

Browse files
authored
Added exports.default to package.json (#1630)
Per NodeJS documentation on the `package.json` `exports` object, there seems to be a need for a fallback `default` key: https://nodejs.org/api/packages.html#conditional-exports Additionally, I'm seeing things like eslint fail to resolve until a `default` key has been specified. I've not dug any further into why, but I think _some_ default should be defined until more options should later be added.
1 parent 7aad3d3 commit ff0f3b6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@
99
"exports": {
1010
".": {
1111
"require": "./lib/application.js",
12-
"import": "./dist/koa.mjs"
12+
"import": "./dist/koa.mjs",
13+
"default": "./dist/koa.mjs"
1314
},
1415
"./*": "./*.js",
1516
"./*.js": "./*.js",

0 commit comments

Comments
 (0)