Skip to content
This repository has been archived by the owner on Jan 3, 2024. It is now read-only.

Commit

Permalink
fix: Babel runner picks wrong config (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
Maxim authored Jul 15, 2020
1 parent ba91a61 commit 043bb85
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions plugins/runner-babel/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,11 +75,7 @@ export default defineRunner(runnerOptions, async ctx => {
partialConfig?.babelignore
].filter(Boolean) as string[];

const configKey = configDependencies.join('-');
if (!optionsByConfigKey[configKey]) {
optionsByConfigKey[configKey] = babel.loadOptions(partialConfig?.options);
}
const loadedOptions = optionsByConfigKey[configKey];
const loadedOptions = babel.loadOptions(partialConfig?.options);

const cacheKeys = [
JSON.stringify({
Expand Down

0 comments on commit 043bb85

Please sign in to comment.