@angularclass/hmr-loader
Advanced tools
Comparing version 3.0.3 to 3.0.4
@@ -10,3 +10,3 @@ var utils = require('loader-utils'); | ||
self.cacheable && self.cacheable(); | ||
var query = utils.parseQuery(self.query); | ||
var query = utils.getOptions(self) || {}; | ||
@@ -25,3 +25,3 @@ function done(src, srcmap) { | ||
// return updated metadata | ||
return '(document.readyState === "complete") ? ' + main + | ||
return '(document.readyState === "complete" || document.readyState === "interactive") ? ' + main + | ||
'() : document.addEventListener("DOMContentLoaded", function() { ' + main + '()' + ' })'; | ||
@@ -75,4 +75,5 @@ }); | ||
// Make sure it works anyway you import it | ||
Angular2HMRLoader.default = Angular2HMRLoader; | ||
module.exports = Angular2HMRLoader |
{ | ||
"name": "@angularclass/hmr-loader", | ||
"version": "3.0.3", | ||
"version": "3.0.4", | ||
"description": "Angular HMR Webpack Loader by @AngularClass", | ||
@@ -29,4 +29,4 @@ "main": "index.js", | ||
"dependencies": { | ||
"loader-utils": "^0.2.15" | ||
"loader-utils": "^1.1.0" | ||
} | ||
} |
# Angular 2 HMR Loader | ||
Angular 2 HMR Webpack Loader by @AngularClass | ||
Please consider using https://github.com/AngularClass/angular2-hmr which provides helpers for HMR in Angular 2 | ||
Please consider using [AngularClass/angular2-hmr](https://github.com/AngularClass/angular2-hmr) which provides helpers for HMR in Angular 2 | ||
```es6 | ||
@@ -8,6 +8,6 @@ { | ||
loaders: [ | ||
'awesome-typescript-loader', | ||
'@angularclass/hmr-loader' | ||
'@angularclass/hmr-loader', | ||
'awesome-typescript-loader' | ||
] | ||
}, | ||
``` |
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
15991
67
+ Addedbig.js@5.2.2(transitive)
+ Addedemojis-list@3.0.0(transitive)
+ Addedjson5@1.0.2(transitive)
+ Addedloader-utils@1.4.2(transitive)
+ Addedminimist@1.2.8(transitive)
- Removedbig.js@3.2.0(transitive)
- Removedemojis-list@2.1.0(transitive)
- Removedjson5@0.5.1(transitive)
- Removedloader-utils@0.2.17(transitive)
- Removedobject-assign@4.1.1(transitive)
Updatedloader-utils@^1.1.0