Skip to content

Commit

Permalink
fix(bundling): fix exclude entries for .lib.swcrc file to exclude spe… (
Browse files Browse the repository at this point in the history
#13319)

(cherry picked from commit 1b3abbd)
  • Loading branch information
jaysoo authored and FrozenPandaz committed Nov 28, 2022
1 parent c127d65 commit 8816c51
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Expand Up @@ -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$\\"
Expand Down
4 changes: 2 additions & 2 deletions packages/js/src/utils/swc/add-swc-config.ts
Expand Up @@ -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$',
Expand Down

0 comments on commit 8816c51

Please sign in to comment.