We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 368c18f commit 977a284Copy full SHA for 977a284
1 file changed
test.config.js
@@ -1,5 +1,7 @@
1
import path from 'node:path';
2
import createEsmUtils from 'esm-utils';
3
+import prettier from 'prettier';
4
+import { satisfies } from 'semver';
5
6
const { __dirname } = createEsmUtils(import.meta);
7
@@ -13,6 +15,14 @@ export default {
13
15
14
16
externals: { 'fs/promises': 'fs/promises' },
17
18
+ resolve: {
19
+ alias: {
20
+ prettier: satisfies(prettier.version, '^2.3.0')
21
+ ? 'prettier/standalone.js'
22
+ : 'prettier/standalone'
23
+ }
24
+ },
25
+
26
experiments: {
27
asyncWebAssembly: true,
28
topLevelAwait: true,
0 commit comments