Skip to content

Commit

Permalink
Avoid destructuring in untranspiled script.
Browse files Browse the repository at this point in the history
  • Loading branch information
loganfsmyth committed Jan 15, 2017
1 parent 658f13e commit e18dc7a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/babel-runtime/scripts/build-dist.js
Expand Up @@ -29,7 +29,9 @@ var legacy = [
["string/pad-right", "string/pad-end"]
];

legacy.forEach(function([a, b]) {
legacy.forEach(function(pair) {
const a = pair[0];
const b = pair[1];
writeFile("core-js/" + a + ".js", defaultify('require("core-js/library/fn/' + b + '")'));
});

Expand Down

0 comments on commit e18dc7a

Please sign in to comment.