8000 release: v2.0.0-alpha.0 · coreui/coreui-utils@6850faf · GitHub
[go: up one dir, main page]

Skip to content

Commit 6850faf

Browse files
committed
release: v2.0.0-alpha.0
1 parent cb6e965 commit 6850faf

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828
}
2929
],
3030
"sideEffects": false,
31-
"type": "module",
3231
"main": "dist/cjs/index.js",
3332
"module": "dist/esm/index.js",
3433
"jsnext:main": "dist/esm/index.js",
@@ -38,7 +37,7 @@
3837
"dist/"
3938
],
4039
"scripts": {
41-
"build": "rollup -c",
40+
"build": "rollup -c --bundleConfigAsCjs",
4241
"lint": "eslint \"src/**/*.{js,ts,tsx}\""
4342
},
4443
"devDependencies": {

src/hex-to-rgb.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const hexToRgb = (color: string) => {
77
const hex = color.match(/^#(?:[0-9a-f]{3}){1,2}$/i)
88

99
if (!hex) {
10-
throw new Error(`${color} is not a valid hex color`)
10+
// throw new Error(`${color} is not a valid hex color`)
1111
}
1212

1313
let r

0 commit comments

Comments
 (0)
0