mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-01-14 06:43:25 +08:00
21 lines
553 B
Diff
21 lines
553 B
Diff
diff --git a/package.json b/package.json
|
|
index f2f77fa79c99382b079f4051ed51eafe8d2379c8..0bfddf55394e86f3a386eb7ab681369d410bae07 100644
|
|
--- a/package.json
|
|
+++ b/package.json
|
|
@@ -30,7 +30,15 @@
|
|
"engines": {
|
|
"node": ">=0.10"
|
|
},
|
|
+ "exports": {
|
|
+ ".": {
|
|
+ "import": "./dist/cytoscape.umd.js",
|
|
+ "default": "./dist/cytoscape.cjs.js"
|
|
+ },
|
|
+ "./*": "./*"
|
|
+ },
|
|
"main": "dist/cytoscape.cjs.js",
|
|
+ "module": "dist/cytoscape.umd.js",
|
|
"unpkg": "dist/cytoscape.min.js",
|
|
"jsdelivr": "dist/cytoscape.min.js",
|
|
"scripts": {
|