Skip to content

Commit 667976d

Browse files
author
Agney
committed
add NodeJS exports
1 parent 2eaaad3 commit 667976d

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

playground/package.json

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,18 @@
1515
},
1616
"source": "src/Playground.tsx",
1717
"main": "dist/playground.js",
18-
"exports": "./dist/playground.modern.js",
1918
"module": "dist/playground.module.js",
2019
"unpkg": "dist/playground.umd.js",
20+
"umd:main": "dist/playground.umd.js",
21+
"types": "dist/Playground.d.ts",
22+
"exports": {
23+
".": {
24+
"browser": "./dist/playground.module.js",
25+
"umd": "./dist/playground.umd.js",
26+
"import": "./dist/playground.module.js",
27+
"require": "./dist/playground.js"
28+
}
29+
},
2130
"keywords": [
2231
"react",
2332
"editor",
@@ -30,8 +39,8 @@
3039
"author": "Agney Menon <agney@outlook.in> (@agneymenon)",
3140
"license": "MIT",
3241
"peerDependencies": {
33-
"react": ">=16",
34-
"react-dom": ">=16"
42+
"react": "^17.0.1",
43+
"react-dom": "^17.0.1"
3544
},
3645
"dependencies": {
3746
"@agney/react-inspector": "^4.0.0",

0 commit comments

Comments
 (0)