Skip to content

Commit 4f43e04

Browse files
committed
[Breaking] add ESM wrapper to "exports"; change paths to match
1 parent f5182ea commit 4f43e04

File tree

2 files changed

+15
-5
lines changed

2 files changed

+15
-5
lines changed

index.mjs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import async from 'resolve/async';
2+
import sync from 'resolve/sync';
3+
import core from 'resolve/core';
4+
import isCore from 'resolve/isCore';
5+
6+
Object.freeze(isCore);
7+
8+
export { async, sync, core, isCore };

package.json

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,35 +10,37 @@
1010
"exports": {
1111
".": [
1212
{
13+
"import": "./index.mjs",
14+
"require": "./index.js",
1315
"default": "./index.js"
1416
},
1517
"./index.js"
1618
],
17-
"./lib/core": [
19+
"./core": [
1820
{
1921
"default": "./lib/core.js"
2022
},
2123
"./lib/core.js"
2224
],
23-
"./lib/core.json": [
25+
"./core.json": [
2426
{
2527
"default": "./lib/core.json"
2628
},
2729
"./lib/core.json"
2830
],
29-
"./lib/is-core": [
31+
"./isCore": [
3032
{
3133
"default": "./lib/is-core.js"
3234
},
3335
"./lib/is-core.js"
3436
],
35-
"./lib/sync": [
37+
"./sync": [
3638
{
3739
"default": "./lib/sync.js"
3840
},
3941
"./lib/sync.js"
4042
],
41-
"./lib/async": [
43+
"./async": [
4244
{
4345
"default": "./lib/async.js"
4446
},

0 commit comments

Comments
 (0)