Skip to content

Commit 1d6ca9a

Browse files
authored
Fix error when no Prettier options provided (#46)
1 parent a3dbd89 commit 1d6ca9a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ function sortClasses(
8888
function createParser(original, transform) {
8989
return {
9090
...original,
91-
parse(text, parsers, options) {
91+
parse(text, parsers, options = {}) {
9292
let ast = original.parse(text, parsers, options)
9393
let tailwindConfigPath = '__default__'
9494
let tailwindConfig = {}

0 commit comments

Comments
 (0)