From 5548c81135434b2e43a70f7439832393b9c3468f Mon Sep 17 00:00:00 2001 From: Kevin Jahns Date: Wed, 3 Nov 2021 15:59:32 +0100 Subject: [PATCH] use package.json exports --- package.json | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/package.json b/package.json index baf2a9c..1734c98 100644 --- a/package.json +++ b/package.json @@ -10,6 +10,13 @@ "type": "GitHub Sponsors ❤", "url": "https://github.com/sponsors/dmonad" }, + "exports": { + ".": { + "import": "./src/y-codemirror.js", + "require": "./dist/y-codemirror.cjs" + }, + "./package.json": "./package.json" + }, "files": [ "dist/*", "src/*"