From 1b3abbd477bd4fd74af75e2e792cf1af6d8cd356 Mon Sep 17 00:00:00 2001 From: Jack Hsu Date: Tue, 22 Nov 2022 10:19:49 -0500 Subject: [PATCH] =?UTF-8?q?fix(bundling):=20fix=20exclude=20entries=20for?= =?UTF-8?q?=20.lib.swcrc=20file=20to=20exclude=20spe=E2=80=A6=20(#13319)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../__snapshots__/update-lib-swcrc-exclude.spec.ts.snap | 4 ++-- packages/js/src/utils/swc/add-swc-config.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/js/src/migrations/update-13-10-1/__snapshots__/update-lib-swcrc-exclude.spec.ts.snap b/packages/js/src/migrations/update-13-10-1/__snapshots__/update-lib-swcrc-exclude.spec.ts.snap index dbd56e68bf316..f2c8e8470365e 100644 --- a/packages/js/src/migrations/update-13-10-1/__snapshots__/update-lib-swcrc-exclude.spec.ts.snap +++ b/packages/js/src/migrations/update-13-10-1/__snapshots__/update-lib-swcrc-exclude.spec.ts.snap @@ -25,8 +25,8 @@ exports[`Update .lib.swcrc exclude should update the exclude pattern 1`] = ` \\"sourceMaps\\": true, \\"exclude\\": [ \\"jest.config.ts\\", - \\".*.spec.tsx?$\\", - \\".*.test.tsx?$\\", + \\".*\\\\\\\\.spec.tsx?$\\", + \\".*\\\\\\\\.test.tsx?$\\", \\"./src/jest-setup.ts$\\", \\"./**/jest-setup.ts$\\", \\".*.js$\\" diff --git a/packages/js/src/utils/swc/add-swc-config.ts b/packages/js/src/utils/swc/add-swc-config.ts index eca563191e31e..bbb12462f4da0 100644 --- a/packages/js/src/utils/swc/add-swc-config.ts +++ b/packages/js/src/utils/swc/add-swc-config.ts @@ -5,8 +5,8 @@ import { join } from 'path'; export const defaultExclude = [ 'jest.config.ts', - '.*.spec.tsx?$', - '.*.test.tsx?$', + '.*\\.spec.tsx?$', + '.*\\.test.tsx?$', './src/jest-setup.ts$', './**/jest-setup.ts$', '.*.js$',