8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cb6e965 commit 6850fafCopy full SHA for 6850faf
package.json
@@ -28,7 +28,6 @@
28
}
29
],
30
"sideEffects": false,
31
- "type": "module",
32
"main": "dist/cjs/index.js",
33
"module": "dist/esm/index.js",
34
"jsnext:main": "dist/esm/index.js",
@@ -38,7 +37,7 @@
38
37
"dist/"
39
40
"scripts": {
41
- "build": "rollup -c",
+ "build": "rollup -c --bundleConfigAsCjs",
42
"lint": "eslint \"src/**/*.{js,ts,tsx}\""
43
},
44
"devDependencies": {
src/hex-to-rgb.ts
@@ -7,7 +7,7 @@ const hexToRgb = (color: string) => {
7
const hex = color.match(/^#(?:[0-9a-f]{3}){1,2}$/i)
8
9
if (!hex) {
10
- throw new Error(`${color} is not a valid hex color`)
+ // throw new Error(`${color} is not a valid hex color`)
11
12
13
let r
0 commit comments