Skip to content

Commit

Permalink
cleanup some comments
Browse files Browse the repository at this point in the history
  • Loading branch information
DeMoorJasper committed Aug 31, 2018
1 parent 112ebf3 commit 0dd2663
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions src/transforms/babel.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,6 @@ async function babelTransform(asset, version) {
? require('@babel/core')
: await localRequire('@babel/core', asset.name);

// TODO: support other versions of babel
// if (parseInt(babel.version, 10) !== 6) {
// throw new Error(`Unsupported babel version: ${babel.version}`);
// }

let res = babel.transformFromAst(asset.ast, asset.contents, config);
if (res.ast) {
asset.ast = res.ast;
Expand Down Expand Up @@ -359,13 +354,6 @@ async function getEnvPlugins(targets, useBuiltIns = false) {
}
).plugins;

// @babel/preset-env version 6.x does not cover object-rest-spread so always
// add it.
// plugins.push([
// require('babel-plugin-transform-object-rest-spread'),
// {useBuiltIns}
// ]);

envCache.set(key, plugins);
return plugins;
}
Expand Down

0 comments on commit 0dd2663

Please sign in to comment.