script-loader
Advanced tools
Comparing version 0.2.0 to 0.2.1
@@ -6,13 +6,14 @@ /* | ||
var path = require("path"); | ||
var loaderUtils = require("loader-utils"); | ||
module.exports = function(content) { | ||
this.cacheable && this.cacheable(); | ||
this.clearDependencies && this.clearDependencies(); | ||
var loaderSign = this.request.indexOf("!"); | ||
var rawJs = this.request.substr(loaderSign); // including leading "!" | ||
var rawJs = loaderUtils.getRemainingRequest(this); | ||
if(this.web) | ||
return "require(" + JSON.stringify(path.join(__dirname, "addScript")) + ")"+ | ||
"(require(" + | ||
JSON.stringify("raw" + rawJs) + "))"; | ||
JSON.stringify("raw" + rawJs) + ")" + | ||
")"; | ||
return ""; | ||
} | ||
module.exports.seperable = true; |
{ | ||
"name": "script-loader", | ||
"version": "0.2.0", | ||
"version": "0.2.1", | ||
"author": "Tobias Koppers @sokra", | ||
"description": "script loader module for webpack", | ||
"dependencies": { | ||
"raw-loader": "0.1.x" | ||
"raw-loader": "0.1.x", | ||
"loader-utils": "0.1.x" | ||
}, | ||
@@ -9,0 +10,0 @@ "licenses": [ |
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
1435
26
2
+ Addedloader-utils@0.1.x
+ Addedjson5@0.1.0(transitive)
+ Addedloader-utils@0.1.2(transitive)