Use named export instead of default export (#12740)
This commit is contained in:
1 parent
ba3e736700
commit
c1f6d021e5
22 files changed
+136
-135
No files matched your search
@@ -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;
|
||||
Reference in new issue
Block a user