Skip to content

Commit 8f1ff2d

Browse files
authored
fix: Implement 'exports' field in package.json for the core & basics setup package (#692)
1 parent ed1e515 commit 8f1ff2d

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

core/package.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@
88
"license": "MIT",
99
"main": "./cjs/index.js",
1010
"module": "./esm/index.js",
11+
"exports": {
12+
"require": "./cjs/index.js",
13+
"import": "./esm/index.js"
14+
},
1115
"scripts": {
1216
"bundle": "ncc build src/index.tsx --target web --filename codemirror && npm run bundle:min",
1317
"bundle:watch": "ncc watch src/index.tsx --target web --filename codemirror",

extensions/basic-setup/package.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@
88
"license": "MIT",
99
"main": "./cjs/index.js",
1010
"module": "./esm/index.js",
11+
"exports": {
12+
"require": "./cjs/index.js",
13+
"import": "./esm/index.js"
14+
},
1115
"scripts": {
1216
"watch": "tsbb watch src/*.ts --use-babel",
1317
"build": "tsbb build src/*.ts --use-babel"

0 commit comments

Comments
 (0)