Skip to content

Commit

Permalink
Remove console shim
Browse files Browse the repository at this point in the history
We no longer need to shim the `console` as we are properly checking that
it exists throughout Steal.
  • Loading branch information
matthewp committed Dec 9, 2016
1 parent fa4943d commit 3218b29
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 13 deletions.
1 change: 0 additions & 1 deletion Gruntfile.js
Expand Up @@ -16,7 +16,6 @@ module.exports = function (grunt) {
concat: {
dist: {
src: [
"src/console.js",
"node_modules/steal-es6-module-loader/dist/es6-module-loader.src.js",
"node_modules/steal-systemjs/dist/system.src.js",
"src/start.js",
Expand Down
4 changes: 0 additions & 4 deletions src/console.js

This file was deleted.

5 changes: 0 additions & 5 deletions steal.js
@@ -1,8 +1,3 @@
if(typeof console === "undefined") {
console = {};
console.log = console.error = console.warn = console.info = console.clear = function(){};
}

!function(e){"object"==typeof exports?module.exports=e():"function"==typeof define&&define.amd?define(e):"undefined"!=typeof window?window.Promise=e():"undefined"!=typeof global?global.Promise=e():"undefined"!=typeof self&&(self.Promise=e())}(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);throw new Error("Cannot find module '"+o+"'")}var f=n[o]={exports:{}};t[o][0].call(f.exports,function(e){var n=t[o][1][e];return s(n?n:e)},f,f.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){
/** @license MIT License (c) copyright 2010-2014 original author or authors */
/** @author Brian Cavalier */
Expand Down
6 changes: 3 additions & 3 deletions steal.production.js

Large diffs are not rendered by default.

0 comments on commit 3218b29

Please sign in to comment.