wallaby-webpack
Advanced tools
Comparing version 0.0.41 to 0.0.42
11
index.js
@@ -314,3 +314,3 @@ 'use strict'; | ||
}; | ||
compilation.plugin('should-generate-chunk-assets', function() { | ||
compilation.plugin('should-generate-chunk-assets', function () { | ||
return false; | ||
@@ -334,6 +334,6 @@ }); | ||
_removePlugins(i, compilation){ | ||
_removePlugins(i, compilation) { | ||
var name = 'applyPlugins' + i; | ||
var originalApplyPlugins = compilation['applyPlugins' + i]; | ||
if(originalApplyPlugins){ | ||
if (originalApplyPlugins) { | ||
compilation[name] = function (name) { | ||
@@ -354,3 +354,3 @@ if (name === 'optimize-module-order' || name === 'optimize-chunk-order' || name === 'optimize-chunk-ids') return; | ||
return { | ||
code: WebpackPostprocessor._wrapSourceFile(WebpackPostprocessor._getModuleId(m, file, self._isEntryFile(file)), node.source()), | ||
code: WebpackPostprocessor._wrapSourceFile(WebpackPostprocessor._getModuleId(m, file, self._isEntryFile(file)), node.source(), m.strict), | ||
map: () => node.map() | ||
@@ -380,4 +380,5 @@ }; | ||
static _wrapSourceFile(id, content) { | ||
static _wrapSourceFile(id, content, useStrict) { | ||
return 'window.__moduleBundler.cache[' + JSON.stringify(id) + '] = [function(__webpack_require__, module, exports, __webpack_exports__) {' | ||
+ (useStrict ? '"use strict";' : '') | ||
+ content + '\n}, window.__moduleBundler.deps];'; | ||
@@ -384,0 +385,0 @@ } |
{ | ||
"name": "wallaby-webpack", | ||
"version": "0.0.41", | ||
"version": "0.0.42", | ||
"description": "Webpack postprocessor for wallaby.js", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
20071
389