From 37f6bc629afe809e67ce7c05a7eb356bbe87a7c1 Mon Sep 17 00:00:00 2001 From: sapphi-red <49056869+sapphi-red@users.noreply.github.com> Date: Tue, 28 Oct 2025 16:24:30 +0900 Subject: [PATCH] chore: use ts-ignore for ecosystem-ci --- packages/plugin-react/src/index.ts | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/packages/plugin-react/src/index.ts b/packages/plugin-react/src/index.ts index 6557e0e88..f96d26cf8 100644 --- a/packages/plugin-react/src/index.ts +++ b/packages/plugin-react/src/index.ts @@ -189,7 +189,8 @@ export default function viteReact(opts: Options = {}): Plugin[] { configResolved(config) { runningInVite = true base = config.base - // @ts-expect-error only available in newer rolldown-vite + // eslint-disable-next-line @typescript-eslint/ban-ts-comment -- use ts-ignore for ecosystem-ci + // @ts-ignore only available in newer rolldown-vite if (config.experimental.fullBundleMode) { isFullBundle = true } @@ -225,9 +226,11 @@ export default function viteReact(opts: Options = {}): Plugin[] { }, options(options) { if (!runningInVite) { - // @ts-expect-error Rolldown has `transform.jsx` + // eslint-disable-next-line @typescript-eslint/ban-ts-comment -- use ts-ignore for ecosystem-ci + // @ts-ignore Rolldown has `transform.jsx` options.transform ??= {} - // @ts-expect-error Rolldown has `transform.jsx` + // eslint-disable-next-line @typescript-eslint/ban-ts-comment -- use ts-ignore for ecosystem-ci + // @ts-ignore Rolldown has `transform.jsx` options.transform.jsx = { runtime: opts.jsxRuntime, importSource: opts.jsxImportSource,