enhanced-require
Advanced tools
Comparing version 0.5.0-beta3 to 0.5.0-beta4
@@ -20,2 +20,3 @@ var runInThisContext = require("vm").runInThisContext; | ||
this.children = []; | ||
this.parents = []; | ||
this.loaded = false; | ||
@@ -50,3 +51,3 @@ this.exports = {}; | ||
if(!this._source) throw new Error("No source availible"); | ||
var code = this._source.source(); | ||
var code = this._source.source().replace(/^\#\!.*/, ''); | ||
var wrappedCode = "(function (exports, require, define, module, __filename, __dirname) {" + stripBOM(code) + "\n})"; | ||
@@ -53,0 +54,0 @@ var wrappedFunction = runInThisContext(wrappedCode, this.id, this.id == this.filename); |
{ | ||
"name": "enhanced-require", | ||
"version": "0.5.0-beta3", | ||
"version": "0.5.0-beta4", | ||
"author": "Tobias Koppers @sokra", | ||
@@ -5,0 +5,0 @@ "description": "Enhance the require function in node.js with support for loaders which preprocess files and really async require (AMD). Enables Hot Code Replacement.", |
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
70508
1971