Skip to content

Commit e1def0c

Browse files
authored
Allow require('culori') in package.json 'exports' field (#219)
* Fix CommonJS module import * Back /require CJS import
1 parent 18d3358 commit e1def0c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,11 @@
77
"browser": "./bundled/culori.min.js",
88
"jsdelivr": "./bundled/culori.umd.js",
99
"exports": {
10+
".": {
11+
"require": "./bundled/culori.cjs",
12+
"import": "./src/index.js"
13+
},
1014
"./require": "./bundled/culori.cjs",
11-
".": "./src/index.js",
1215
"./css": "./src/bootstrap/css.js",
1316
"./all": "./src/bootstrap/all.js",
1417
"./fn": "./src/index-fn.js",

0 commit comments

Comments
 (0)