Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 13 additions & 4 deletions packages/react-resizable-panels/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,18 @@
".": {
"types": "./dist/react-resizable-panels.js",
"development": {
"edge-light": "./dist/react-resizable-panels.development.edge-light.js",
"worker": "./dist/react-resizable-panels.development.edge-light.js",
"workerd": "./dist/react-resizable-panels.development.edge-light.js",
Comment on lines +23 to +25
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Notice those are the same as the one for node - the bundle itself is reused. Those keys here are just listed in order of preference (remember those keys here are ordered - despite being just object keys)

"browser": "./dist/react-resizable-panels.browser.development.js",
"node": "./dist/react-resizable-panels.development.node.js",
"node": "./dist/react-resizable-panels.development.edge-light.js",
"default": "./dist/react-resizable-panels.development.js"
},
"edge-light": "./dist/react-resizable-panels.edge-light.js",
"worker": "./dist/react-resizable-panels.edge-light.js",
"workerd": "./dist/react-resizable-panels.edge-light.js",
"browser": "./dist/react-resizable-panels.browser.js",
"node": "./dist/react-resizable-panels.node.js",
"node": "./dist/react-resizable-panels.edge-light.js",
"default": "./dist/react-resizable-panels.js"
},
"./package.json": "./package.json"
Expand All @@ -36,9 +42,12 @@
"default": "./src/env-conditions/production.ts"
},
"#is-browser": {
"edge-light": "./src/env-conditions/server.ts",
"workerd": "./src/env-conditions/server.ts",
"worker": "./src/env-conditions/server.ts",
"browser": "./src/env-conditions/browser.ts",
"node": "./src/env-conditions/node.ts",
"default": "./src/env-conditions/unknown.ts"
"node": "./src/env-conditions/server.ts",
"default": "./src/env-conditions/check-is-browser.ts"
}
},
"types": "dist/react-resizable-panels.cjs.d.ts",
Expand Down