Skip to content

Commit

Permalink
don't load the second global copy of core-js in the tests for simpl…
Browse files Browse the repository at this point in the history
…ify debugging
  • Loading branch information
zloirock committed May 8, 2021
1 parent 1789d3e commit 7a7c66b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/generate-indexes.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ async function generateTestsIndex(name, pkg) {
return writeFile(`${ dir }/index.js`, `${ files
.filter(it => /^(?:es|esnext|web)\./.test(it))
.map(it => `import './${ it.slice(0, -3) }';\n`)
.join('') }\nimport core from '${ pkg }';\ncore.globalThis.core = core;\n`);
.join('') }${ pkg !== 'core-js' ? `\nimport core from '${ pkg }';\ncore.globalThis.core = core;\n` : '' }`);
}

(async () => {
Expand Down

0 comments on commit 7a7c66b

Please sign in to comment.