@angularclass/hmr-loader
Advanced tools
Comparing version 3.0.1 to 3.0.2
12
index.js
@@ -24,12 +24,4 @@ var utils = require('loader-utils'); | ||
// return updated metadata | ||
var newLine = ' '; | ||
if (query.pretty) { | ||
newLine = '\n'; | ||
} | ||
return ';' + | ||
'if (document.readyState === "complete") {'+ newLine + | ||
' ' + main + '()' + newLine + | ||
'} else {'+ newLine + | ||
' document.addEventListener("DOMContentLoaded", function() { ' + main + '()' + ' });'+ newLine + | ||
'}'; | ||
return '(document.readyState === "complete") ? ' + main + | ||
'() : document.addEventListener("DOMContentLoaded", function() { ' + main + '()' + ' })'; | ||
}); | ||
@@ -36,0 +28,0 @@ return done(source, sourcemap); |
{ | ||
"name": "@angularclass/hmr-loader", | ||
"version": "3.0.1", | ||
"version": "3.0.2", | ||
"description": "Angular 2 HMR Webpack Loader by @AngularClass", | ||
@@ -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
15881
66