Skip to content

Commit b32ef05

Browse files
committed
Move eval to own line
1 parent b0ece7d commit b32ef05

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/lib/twConfigParser.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@ import flattenColorPalette from 'tailwindcss/lib/util/flattenColorPalette'
22
import resolveConfig from 'tailwindcss/resolveConfig'
33

44
export default (configStr) => {
5-
return resolveConfig(configStr)
5+
const config = eval(configStr)
6+
return resolveConfig(config)
67
}
78

89
export const transformThemeForCanvas = ({ theme }) => {

0 commit comments

Comments
 (0)