Skip to content

Commit

Permalink
fix(color): use require instead of import
Browse files Browse the repository at this point in the history
  • Loading branch information
pearmini committed Jun 23, 2021
1 parent e8c29bf commit f8a7858
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
"@commitlint/cli": "^11.0.0",
"@commitlint/config-conventional": "^12.0.1",
"@types/benchmark": "^2.1.0",
"@types/color-string": "^1.5.0",
"@types/jest": "^26.0.20",
"@typescript-eslint/eslint-plugin": "^4.18.0",
"@typescript-eslint/parser": "^4.19.0",
Expand Down
2 changes: 1 addition & 1 deletion src/utils/color.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import colorString from 'color-string';
const colorString = require('color-string');

function hue2rgb(p: number, q: number, m: number) {
let t = m;
Expand Down

0 comments on commit f8a7858

Please sign in to comment.