webpack-core
Advanced tools
Comparing version 0.2.12 to 0.2.13
@@ -0,0 +0,0 @@ /* |
@@ -0,0 +0,0 @@ /* |
@@ -0,0 +0,0 @@ /* |
@@ -0,0 +0,0 @@ /* |
@@ -0,0 +0,0 @@ /* |
@@ -13,2 +13,11 @@ /* | ||
function utf8BufferToString(buf) { | ||
var str = buf.toString("utf-8"); | ||
if(str.charCodeAt(0) === 0xFEFF) { | ||
return str.substr(1); | ||
} else { | ||
return str; | ||
} | ||
} | ||
function NormalModuleMixin(loaders, resource) { | ||
@@ -243,3 +252,3 @@ this.resource = resource; | ||
if(Buffer.isBuffer(args[0])) | ||
args[0] = args[0].toString("utf-8"); | ||
args[0] = utf8BufferToString(args[0]); | ||
return onModuleBuild.apply(module, args); | ||
@@ -254,3 +263,3 @@ } | ||
if(!l.module.raw && Buffer.isBuffer(args[0])) { | ||
args[0] = args[0].toString("utf-8"); | ||
args[0] = utf8BufferToString(args[0]); | ||
} else if(l.module.raw && typeof args[0] === "string") { | ||
@@ -257,0 +266,0 @@ args[0] = new Buffer(args[0], "utf-8"); |
@@ -0,0 +0,0 @@ /* |
@@ -0,0 +0,0 @@ /* |
@@ -0,0 +0,0 @@ /* |
@@ -0,0 +0,0 @@ /* |
@@ -0,0 +0,0 @@ /* |
@@ -0,0 +0,0 @@ /* |
@@ -0,0 +0,0 @@ /* |
@@ -0,0 +0,0 @@ /* |
@@ -0,0 +0,0 @@ /* |
{ | ||
"name": "webpack-core", | ||
"version": "0.2.12", | ||
"version": "0.2.13", | ||
"author": "Tobias Koppers @sokra", | ||
@@ -5,0 +5,0 @@ "description": "The core of webpack and enhanced-require.", |
@@ -0,0 +0,0 @@ # webpack-core |
Sorry, the diff of this file is not supported yet
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
27731
824