Use named export instead of default export (#12740)

This commit is contained in:
fisker Cheung authored and GitHub committed 2022-05-05 15:03:08 +08:00
1 parent ba3e736700
commit c1f6d021e5
22 files changed
+136 -135

No files matched your search

+1 -5
View File
@@ -3,10 +3,6 @@ import path from "node:path";
const entry = pathToFileURL(path.join(process.env.PRETTIER_DIR, "index.js"));
const getPrettier = async () => {
const { default: prettier } = await import(entry);
return prettier;
};
const getPrettier = () => import(entry);
export default getPrettier;