Skip to content

Commit 3b60ae3

Browse files
Gertjan van Oostenbrettz9
authored andcommitted
#145: Add package exports for browser and umd
1 parent 9c003da commit 3b60ae3

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

package.json

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,15 @@
22
"author": "Stefan Goessner",
33
"name": "jsonpath-plus",
44
"version": "5.0.2",
5-
"type": "commonjs",
65
"main": "dist/index-node-cjs.js",
76
"exports": {
8-
"import": "./dist/index-node-esm.mjs",
9-
"require": "./dist/index-node-cjs.js"
7+
".": {
8+
"browser": "./dist/index-browser-esm.js",
9+
"umd": "./dist/index-browser-umd.js",
10+
"import": "./dist/index-node-esm.mjs",
11+
"require": "./dist/index-node-cjs.js",
12+
"default": "./dist/index-browser-esm.js"
13+
}
1014
},
1115
"module": "dist/index-node-esm.mjs",
1216
"browser": "dist/index-browser-esm.js",

0 commit comments

Comments
 (0)