Comparing version 2.8.0 to 2.8.1
{ | ||
"name": "hbsfy", | ||
"version": "2.8.0", | ||
"version": "2.8.1", | ||
"description": "Handlebars precompiler plugin for Browserify v2", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -17,5 +17,9 @@ | ||
b.bundle().pipe(concat(function(data) { | ||
assert(data.length < 35000, "Bundle is too big! Maybe full Handlebars got compiled in?"); | ||
b.bundle({ debug: false }).pipe(concat(function(data) { | ||
// Browserify is not respecting the `debug` flag, so source maps | ||
// are included, blowing up the size. | ||
var stripped = data.toString('utf8').replace(/\/\/# sourceMappingURL.+/g, ''); | ||
assert(stripped.length < 35000, "Bundle is too big! Maybe full Handlebars got compiled in?"); | ||
vm.runInNewContext(data.toString(), context); | ||
})); | ||
@@ -22,0 +26,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
40097
809