Skip to content

Commit

Permalink
Add exports key in package.json
Browse files Browse the repository at this point in the history
Ref:

- Improving ESM support and documentation, esp. for browsers #3217
- Change rollup.config to bundle deps in esm.js #3221
  • Loading branch information
maxkfranz committed Feb 20, 2024
1 parent dc2412b commit 9bd7a73
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,13 @@
"node": ">=0.10"
},
"main": "dist/cytoscape.cjs.js",
"module": "dist/cytoscape.esm.js",
"exports": {
".": {
"import": "./dist/cytoscape.esm.js",
"require": "./dist/cytoscape.cjs.js"
}
},
"unpkg": "dist/cytoscape.min.js",
"jsdelivr": "dist/cytoscape.min.js",
"scripts": {
Expand Down

0 comments on commit 9bd7a73

Please sign in to comment.