Skip to content

Commit

Permalink
Swap "node" and "module" conditions
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolo-ribaudo committed Jan 31, 2021
1 parent 6909c3b commit 3041c05
Show file tree
Hide file tree
Showing 4 changed files with 244 additions and 244 deletions.
8 changes: 4 additions & 4 deletions packages/babel-plugin-transform-runtime/scripts/build-dist.js
Expand Up @@ -138,14 +138,14 @@ function writeHelpers(runtimeName, { corejs } = {}) {
for (const helperName of helpers.list) {
const helperPath = path.join("helpers", helperName);
helperSubExports[`./${helperPath}`] = {
node: writeHelperFile(runtimeName, pkgDirname, helperPath, helperName, {
esm: false,
corejs,
}),
module: writeHelperFile(runtimeName, pkgDirname, helperPath, helperName, {
esm: true,
corejs,
}),
node: writeHelperFile(runtimeName, pkgDirname, helperPath, helperName, {
esm: false,
corejs,
}),
get default() {
return this.module;
},
Expand Down

0 comments on commit 3041c05

Please sign in to comment.