Skip to content

Commit 05d086f

Browse files
authored
Fix JS config loader (#105)
1 parent 39c7489 commit 05d086f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/config_prettier.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ const Loaders = {
1616
},
1717
js: async (filePath: string): Promise<unknown> => {
1818
const module = await import(url.pathToFileURL(filePath).href);
19-
return module.default || module.exports || module.prettier || module;
19+
return module.default;
2020
},
2121
json: async (filePath: string): Promise<unknown> => {
2222
const fileContent = fs.readFileSync(filePath, "utf8");

0 commit comments

Comments
 (0)