Comparing version 0.2.3 to 0.2.4
@@ -0,1 +1,2 @@ | ||
var console = window.console; | ||
exports.log = (console && console.log) || function() {}; | ||
@@ -14,7 +15,2 @@ exports.info = (console && console.info) || function() {}; | ||
exports.trace = (console && console.trace) || function() {}; | ||
exports.assert = (console && console.assert) || function() { | ||
if (!expression) { | ||
var arr = Array.prototype.slice.call(arguments, 1); | ||
require('assert').ok(false, util.format.apply(this, arr)); | ||
} | ||
}; | ||
exports.assert = (console && console.assert) || function() {}; |
@@ -118,4 +118,5 @@ /* | ||
case "VariableDeclarator": | ||
if(declarator.name in context.options.overwrites) { | ||
context.overwrite.push(declarator.name); | ||
if(declarator.id.type === "Identifier" && | ||
declarator.id.name in context.options.overwrites) { | ||
context.overwrite.push(declarator.id.name); | ||
} | ||
@@ -122,0 +123,0 @@ if(declarator.init) |
@@ -61,2 +61,4 @@ /* | ||
options.parse.overwrites.module = options.parse.overwrites.module || ("__webpack_module"); | ||
options.parse.overwrites.console = options.parse.overwrites.console || ("__webpack_console"); | ||
options.parse.overwrites.global = options.parse.overwrites.global || ("__webpack_global"); | ||
options.resolve = options.resolve || {}; | ||
@@ -63,0 +65,0 @@ options.resolve.paths = options.resolve.paths || []; |
{ | ||
"name": "webpack", | ||
"version": "0.2.3", | ||
"version": "0.2.4", | ||
"author": "Tobias Koppers @sokra", | ||
@@ -5,0 +5,0 @@ "description": "Packs CommonJs Modules for the browser. Allows to split your codebase into multiple bundles, which can be loaded on demand.", |
@@ -46,2 +46,11 @@ window.test(true, "index.js should be replaced with index.web.js"); | ||
process.emit("xyz"); | ||
window.test(window === global, "window === global"); | ||
(function() { | ||
var require = 123; | ||
window.test(require === 123, "overwrite require via variable should be ok"); | ||
}()); | ||
(function() { | ||
var module = 1233; | ||
window.test(module === 1233, "overwrite module via variable should be ok"); | ||
}()); | ||
}); | ||
@@ -48,0 +57,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
113898
89
2774
36