remove console.log, fix tests

This commit is contained in:
Henry Zhu
2016-12-08 11:51:38 -05:00
parent 66ab523dd6
commit d2976bed13
6 changed files with 10 additions and 12 deletions

View File

@@ -146,12 +146,11 @@ import "babel-polyfill";
Out (different based on environment)
```js
import "core-js/modules/es6.typed.data-view";
import "core-js/modules/es6.reflect.apply";
import "core-js/modules/es6.reflect.own-keys";
import "core-js/modules/es6.symbol.iterator";
import "core-js/modules/es6.symbol.species";
import "core-js/modules/es6.array.from";
import "core-js/modules/es7.string.pad-start";
import "core-js/modules/es7.string.pad-end";
import "core-js/modules/web.timers";
import "core-js/modules/web.immediate";
import "core-js/modules/web.dom.iterable";
```
> This will also work for "core-js" directly (`import "core-js";`)

View File

@@ -17,7 +17,7 @@ const es2015 = {
"es6.set": "Set",
"es6.weak-map": "WeakMap",
"es6.weak-set": "WeakSet",
// proxy not implemented
// Proxy not implementable
"es6.reflect.apply": "Reflect / Reflect.apply",
"es6.reflect.construct": "Reflect / Reflect.construct",
@@ -82,7 +82,7 @@ const es2015 = {
"es6.array.find": "Array.prototype methods / Array.prototype.find",
"es6.array.find-index": "Array.prototype methods / Array.prototype.findIndex",
"es6.array.fill": "Array.prototype methods / Array.prototype.fill",
"es6.array.iterator": {
features: [
"Array.prototype methods / Array.prototype.keys",

View File

@@ -95,7 +95,6 @@ const getLowestImplementedVersion = ({ features }, env) => {
// don't count against it
// only doing this for built-ins atm
if (!test.babel && isBuiltIn) {
console.log(name);
return "-1";
}

View File

@@ -170,7 +170,7 @@ export default function buildPreset(context, opts = {}) {
console.log("");
console.log(`Using targets: ${JSON.stringify(targets, null, 2)}`);
console.log("");
console.log(`module: ${moduleType}`);
console.log(`modules transform: ${moduleType}`);
console.log("");
console.log("Using plugins:");
transformations.forEach((transform) => {
@@ -187,8 +187,6 @@ export default function buildPreset(context, opts = {}) {
let allTransformations = [...transformations, ...whitelist];
let regenerator = allTransformations.indexOf("transform-regenerator") >= 0;
console.log(allTransformations, regenerator);
let plugins = allTransformations.map((pluginName) => {
return [require(`babel-plugin-${pluginName}`), { loose }];
});

View File

@@ -16,6 +16,7 @@ import "core-js/modules/es6.reflect.prevent-extensions";
import "core-js/modules/es6.reflect.set";
import "core-js/modules/es6.reflect.set-prototype-of";
import "core-js/modules/es6.promise";
import "core-js/modules/es6.symbol";
import "core-js/modules/es6.function.name";
import "core-js/modules/es6.regexp.flags";
import "core-js/modules/es6.regexp.match";

View File

@@ -3,6 +3,7 @@ import "core-js/modules/es6.set";
import "core-js/modules/es6.weak-map";
import "core-js/modules/es6.weak-set";
import "core-js/modules/es6.promise";
import "core-js/modules/es6.symbol";
import "core-js/modules/es6.function.name";
import "core-js/modules/es6.regexp.match";
import "core-js/modules/es6.regexp.replace";