diff --git a/package.json b/package.json index 4286163e9f..12b30019a9 100644 --- a/package.json +++ b/package.json @@ -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": {