Skip to content

Commit

Permalink
feat: disable loading user babel config
Browse files Browse the repository at this point in the history
BREAKING CHANGE: This change disables loading user babel config by default, you can still run the jest-babel
transform manually on Marko files.
  • Loading branch information
DylanPiercey committed Jun 1, 2024
1 parent 8f2b2f7 commit cd8387a
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/transform/create-transform.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,24 @@ export default ({ browser }: { browser: boolean }) => {
}
: {
fileSystem: createVirtualFS(transformOptions.cacheFS),
writeVersionComment: false,
sourceMaps: true,
modules: "cjs",
output,
cache,
babelConfig: {
compact: false,
comments: false,
babelrc: false,
configFile: false,
browserslistConfigFile: false,
caller: {
name: "@marko/jest",
supportsStaticESM: true,
supportsDynamicImport: true,
supportsTopLevelAwait: true,
}
}
};

if (globalMarkoConfig) {
Expand Down

0 comments on commit cd8387a

Please sign in to comment.