diff --git a/core/package.json b/core/package.json index 097cba4b5..ba959fa23 100644 --- a/core/package.json +++ b/core/package.json @@ -8,6 +8,10 @@ "license": "MIT", "main": "./cjs/index.js", "module": "./esm/index.js", + "exports": { + "require": "./cjs/index.js", + "import": "./esm/index.js" + }, "scripts": { "bundle": "ncc build src/index.tsx --target web --filename codemirror && npm run bundle:min", "bundle:watch": "ncc watch src/index.tsx --target web --filename codemirror", diff --git a/extensions/basic-setup/package.json b/extensions/basic-setup/package.json index c95f3e72e..98b3ae96b 100644 --- a/extensions/basic-setup/package.json +++ b/extensions/basic-setup/package.json @@ -8,6 +8,10 @@ "license": "MIT", "main": "./cjs/index.js", "module": "./esm/index.js", + "exports": { + "require": "./cjs/index.js", + "import": "./esm/index.js" + }, "scripts": { "watch": "tsbb watch src/*.ts --use-babel", "build": "tsbb build src/*.ts --use-babel"