Skip to content

Commit

Permalink
add NodeJS exports
Browse files Browse the repository at this point in the history
  • Loading branch information
Agney committed Mar 21, 2021
1 parent 2eaaad3 commit 667976d
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions playground/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,18 @@
},
"source": "src/Playground.tsx",
"main": "dist/playground.js",
"exports": "./dist/playground.modern.js",
"module": "dist/playground.module.js",
"unpkg": "dist/playground.umd.js",
"umd:main": "dist/playground.umd.js",
"types": "dist/Playground.d.ts",
"exports": {
".": {
"browser": "./dist/playground.module.js",
"umd": "./dist/playground.umd.js",
"import": "./dist/playground.module.js",
"require": "./dist/playground.js"
}
},
"keywords": [
"react",
"editor",
Expand All @@ -30,8 +39,8 @@
"author": "Agney Menon <[email protected]> (@agneymenon)",
"license": "MIT",
"peerDependencies": {
"react": ">=16",
"react-dom": ">=16"
"react": "^17.0.1",
"react-dom": "^17.0.1"
},
"dependencies": {
"@agney/react-inspector": "^4.0.0",
Expand Down

0 comments on commit 667976d

Please sign in to comment.