diff --git a/apps/oxfmt/src-js/libs/apis.ts b/apps/oxfmt/src-js/libs/apis.ts index c4823aaa8460a..a00af4a30fde3 100644 --- a/apps/oxfmt/src-js/libs/apis.ts +++ b/apps/oxfmt/src-js/libs/apis.ts @@ -198,7 +198,7 @@ let oxfmtPluginCache: Plugin; async function loadOxfmtPlugin(): Promise { if (oxfmtPluginCache) return oxfmtPluginCache; - oxfmtPluginCache = (await import("./prettier-plugin-oxfmt")) as Plugin; + oxfmtPluginCache = (await import("./prettier-plugin-oxfmt/index")) as Plugin; return oxfmtPluginCache; } diff --git a/apps/oxfmt/src-js/libs/prettier-plugin-oxfmt.ts b/apps/oxfmt/src-js/libs/prettier-plugin-oxfmt.ts deleted file mode 100644 index d917794637434..0000000000000 --- a/apps/oxfmt/src-js/libs/prettier-plugin-oxfmt.ts +++ /dev/null @@ -1,75 +0,0 @@ -/** - * Prettier plugin that uses `oxc_formatter` for (j|t)s-in-xxx part. - * - * When Prettier formats Vue/HTML (which can embed JS/TS code inside) files, - * it calls the `embed()` function for each block. - * - * By default, it uses the `babel` or `typescript` parser and `estree` printer. - * Therefore, by overriding these internally, we can use `oxc_formatter` instead. - * e.g. Now it's possible to apply our builtin sort-imports for JS/TS code inside Vue `