Skip to content

Commit fe2c186

Browse files
author
Gertjan van Oosten
committed
#145: Add package exports for browser and umd
1 parent 9c003da commit fe2c186

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

package.json

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,17 @@
22
"author": "Stefan Goessner",
33
"name": "jsonpath-plus",
44
"version": "5.0.2",
5-
"type": "commonjs",
5+
"type": "module",
66
"main": "dist/index-node-cjs.js",
77
"exports": {
8-
"import": "./dist/index-node-esm.mjs",
9-
"require": "./dist/index-node-cjs.js"
8+
".": {
9+
"browser": "./dist/index-browser-esm.js",
10+
"umd": "./dist/index-browser-umd.js",
11+
"import": "./dist/index-node-esm.mjs",
12+
"require": "./dist/index-node-cjs.js"
13+
},
14+
"./package.json": "./package.json",
15+
"./": "./"
1016
},
1117
"module": "dist/index-node-esm.mjs",
1218
"browser": "dist/index-browser-esm.js",

0 commit comments

Comments
 (0)