Skip to content

Commit 84e1630

Browse files
committed
fix: don't import @prettier/plugin-oxc directly
1 parent 76a0712 commit 84e1630

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

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';
@@ -148,11 +147,11 @@ export const parsers: { [parserName: string]: Parser } = {
148147
defaultParser: htmlParsers.vue,
149148
}),
150149
oxc: transformParser('oxc', {
151-
defaultParser: oxcParsers.oxc,
150+
defaultParser: null,
152151
externalPluginName: '@prettier/plugin-oxc',
153152
}),
154153
'oxc-ts': transformParser('oxc-ts', {
155-
defaultParser: oxcParsers['oxc-ts'],
154+
defaultParser: null,
156155
externalPluginName: '@prettier/plugin-oxc',
157156
}),
158157
astro: transformParser('astro', {

0 commit comments

Comments
 (0)