We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d9bafa3 commit ba684a1Copy full SHA for ba684a1
tests/config/get-prettier.js
@@ -1,6 +1,11 @@
1
+import path from "node:path";
2
+import { createRequire } from "node:module";
3
+
4
function getPrettierInternal() {
5
+ const require = createRequire(import.meta.url);
6
7
const entry = process.env.TEST_STANDALONE
- ? "prettier/standalone"
8
+ ? path.join(path.dirname(require.resolve("prettier")), "standalone.js")
9
: "prettier";
10
11
return import(entry).then((module) => module.default);
0 commit comments