Skip to content

Commit

Permalink
fix: fix resolving custom formatters with no default export
Browse files Browse the repository at this point in the history
  • Loading branch information
Phillip9587 committed Feb 13, 2024
1 parent 6f0d200 commit 229470e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nx-stylelint/src/utils/formatter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,5 @@ export async function importFormatter(formatter: unknown): Promise<FormatterType

return await import(
isAbsolute(moduleOrFilePath) ? pathToFileURL(moduleOrFilePath).toString() : moduleOrFilePath
).then((m) => m.default);
).then((m) => ('default' in m ? m.default : m));
}

0 comments on commit 229470e

Please sign in to comment.