Merge branch 'backstage:master' into master

This commit is contained in:
Johannes Sonner
2025-02-01 14:35:46 +01:00
committed by GitHub
2 changed files with 6 additions and 1 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/cli': patch
---
Only allow pass through of `.mjs` in Jest transform if static ESM is supported.
+1 -1
View File
@@ -29,7 +29,7 @@ function createTransformer(config) {
}
// Skip transformation of .mjs files, they should only be used if ESM support is available
if (filePath.endsWith('.mjs')) {
if (jestOptions.supportsStaticESM && filePath.endsWith('.mjs')) {
return { code: source };
}