From e32b3772b23d169a083d9e2eca76ad157ca13f27 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 2 Jun 2026 22:11:03 -0400 Subject: [PATCH] chore(deps-dev): bump vite-plugin-babel from 1.6.0 to 1.7.3 (#12561) * chore(deps-dev): bump vite-plugin-babel from 1.6.0 to 1.7.3 Bumps [vite-plugin-babel](https://github.com/owlsdepartment/vite-plugin-babel) from 1.6.0 to 1.7.3. - [Commits](https://github.com/owlsdepartment/vite-plugin-babel/commits) --- updated-dependencies: - dependency-name: vite-plugin-babel dependency-version: 1.7.3 dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] * fix: Use include option for vite-plugin-babel TS transform vite-plugin-babel 1.7.0 added an `include` option defaulting to `/\.jsx?$/` (JS only) that is applied before `filter`, so .ts/.tsx files were no longer transformed by Babel and reached the parser with types intact. Switch to the `include` option to match TS files. Co-Authored-By: Claude Opus 4.8 --------- Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Tom Moor Co-authored-by: Claude Opus 4.8 --- package.json | 2 +- vitest.config.ts | 2 +- yarn.lock | 10 +++++----- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/package.json b/package.json index a77dd07ce0..20ebf596c6 100644 --- a/package.json +++ b/package.json @@ -373,7 +373,7 @@ "terser": "^5.48.0", "typescript": "^5.9.3", "unplugin-swc": "^1.5.9", - "vite-plugin-babel": "^1.6.0", + "vite-plugin-babel": "^1.7.3", "vite-tsconfig-paths": "^6.1.1", "vitest": "^4.1.5" }, diff --git a/vitest.config.ts b/vitest.config.ts index 00830a0e10..a50d810269 100644 --- a/vitest.config.ts +++ b/vitest.config.ts @@ -13,7 +13,7 @@ const fileMock = path.resolve(__dirname, "./__mocks__/fileMock.js"); const babelPlugin = () => babel({ - filter: /\.(t|j)sx?$/, + include: /\.(t|j)sx?$/, babelConfig: { babelrc: false, configFile: false, diff --git a/yarn.lock b/yarn.lock index d6b780eb58..5ae8256634 100644 --- a/yarn.lock +++ b/yarn.lock @@ -16417,7 +16417,7 @@ __metadata: validator: "npm:13.15.35" vaul: "npm:^1.1.2" vite: "npm:rolldown-vite@7.3.1" - vite-plugin-babel: "npm:^1.6.0" + vite-plugin-babel: "npm:^1.7.3" vite-plugin-pwa: "npm:1.3.0" vite-tsconfig-paths: "npm:^6.1.1" vitest: "npm:^4.1.5" @@ -20959,13 +20959,13 @@ __metadata: languageName: node linkType: hard -"vite-plugin-babel@npm:^1.6.0": - version: 1.6.0 - resolution: "vite-plugin-babel@npm:1.6.0" +"vite-plugin-babel@npm:^1.7.3": + version: 1.7.3 + resolution: "vite-plugin-babel@npm:1.7.3" peerDependencies: "@babel/core": ^7.0.0 vite: ^2.7.0 || ^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0 - checksum: 10c0/7484bff317cdb988a65613a1c788cd6b9682df66f5cf5226831898678f2811c4d14a8a14519b15c9896b8e8483e9b4b4d5fb519dab3bb497e0952ebc1911fd99 + checksum: 10c0/ff215f066461610c2f512e94e5e7c8c11ba807142d6f4f46e6430d11ff04c18621badb02ca984d2a0dbbcd3bc789454480c7d51fd0214d3f0d20f812e39dd9cd languageName: node linkType: hard