Skip to content

Commit 57bef37

Browse files
committed
fixed webpack console
1 parent 1cefc54 commit 57bef37

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

buildin/__webpack_console.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1-
var console = window.console;
1+
var console = (function() { return this["console"] || this["window"].console || {} }());
22
module.exports = console;
33
for(var name in {log:1, info:1, error:1, warn:1, dir:1, trace:1, assert:1})
44
if(!console[name])
55
console[name] = function() {};
6+
var times = {};
67
if(!console.time)
78
console.time = function(label) {
89
times[label] = Date.now();

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "webpack",
3-
"version": "0.4.21",
3+
"version": "0.4.22",
44
"author": "Tobias Koppers @sokra",
55
"description": "Packs CommonJs Modules for the browser. Allows to split your codebase into multiple bundles, which can be loaded on demand. Support loading of js, json, jade, coffee, css, ... out of the box and more with custom loaders.",
66
"dependencies": {

0 commit comments

Comments
 (0)