cli: simplify jest transform ignore regex

This commit is contained in:
Patrik Oldsberg
2020-10-09 10:47:26 +02:00
parent c852e7b09d
commit f9c42befc6
+1 -1
View File
@@ -96,7 +96,7 @@ async function getConfig() {
// Default behaviour is to not apply transforms for node_modules, but we still want
// to apply the esm-transformer to .esm.js files, since that's what we use in backstage packages.
transformIgnorePatterns: [
`/node_modules/${transformModulePattern}(?:(?!\\.esm).)*\\.(?:js|json)$`,
`/node_modules/${transformModulePattern}.*\\.(?:(?<!esm\\.)js|json)$`,
],
};