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
…c files correctly
  • Loading branch information
jaysoo authored and Jack Hsu committed Nov 22, 2022
1 parent 23e4fc7 commit 4472b63
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 4472b63

Please sign in to comment.