Skip to content

Commit 837631c

Browse files
committed
fix: don't import @prettier/plugin-oxc directly
1 parent b46edd7 commit 837631c

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

src/parsers.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import { parsers as oxcParsers } from '@prettier/plugin-oxc';
21
import type { AST, Parser, Plugin } from 'prettier';
32
import { format } from 'prettier';
43
import { parsers as babelParsers } from 'prettier/plugins/babel';
@@ -209,11 +208,11 @@ export const parsers: { [parserName: string]: Parser } = {
209208
defaultParser: htmlParsers.vue,
210209
}),
211210
oxc: transformParser('oxc', {
212-
defaultParser: oxcParsers.oxc,
211+
defaultParser: null,
213212
externalPluginName: '@prettier/plugin-oxc',
214213
}),
215214
'oxc-ts': transformParser('oxc-ts', {
216-
defaultParser: oxcParsers['oxc-ts'],
215+
defaultParser: null,
217216
externalPluginName: '@prettier/plugin-oxc',
218217
}),
219218
astro: transformParser('astro', {

0 commit comments

Comments
 (0)