Skip to content

Commit

Permalink
babel should only be loaded with prettier V3 and ignored on V2 as we …
Browse files Browse the repository at this point in the history
…don't run a test using it
  • Loading branch information
Janther committed Nov 8, 2023
1 parent 1c8e476 commit 9d2d797
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/config/require-standalone.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ const pluginPrefix = isPrettier2
: "plugins/"; // Prettier V3

const plugins = [
path.join(prettierPath, `${pluginPrefix}babel.js`),
path.join(prettierPath, `${pluginPrefix}markdown.js`),
path.join(__dirname, "../../dist/standalone.cjs"),
];
Expand All @@ -22,6 +21,7 @@ const files = isPrettier2
? [path.join(prettierPath, "standalone.js"), ...plugins]
: [
path.join(prettierPath, "standalone.js"),
path.join(prettierPath, `${pluginPrefix}babel.js`),
path.join(prettierPath, `${pluginPrefix}estree.js`),
...plugins,
];
Expand Down

0 comments on commit 9d2d797

Please sign in to comment.