@angularclass/hmr-loader
Advanced tools
Comparing version 3.0.0 to 3.0.1
@@ -22,3 +22,3 @@ var utils = require('loader-utils'); | ||
if (query.prod) { | ||
source = source.replace(bootLoader, function (match, boot, ngmodule, offset, src) { | ||
source = source.replace(bootLoader, function (match, boot, ngmodule, main, offset, src) { | ||
// return updated metadata | ||
@@ -31,5 +31,5 @@ var newLine = ' '; | ||
'if (document.readyState === "complete") {'+ newLine + | ||
' ' + ngmodule + '()' + newLine + | ||
' ' + main + '()' + newLine + | ||
'} else {'+ newLine + | ||
' document.addEventListener("DOMContentLoaded", function() { ' + ngmodule + '()' + ' });'+ newLine + | ||
' document.addEventListener("DOMContentLoaded", function() { ' + main + '()' + ' });'+ newLine + | ||
'}'; | ||
@@ -36,0 +36,0 @@ }); |
{ | ||
"name": "@angularclass/hmr-loader", | ||
"version": "3.0.0", | ||
"version": "3.0.1", | ||
"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
16081