ng-hot-reload-loader
Advanced tools
Comparing version 1.0.1 to 2.0.0-0
var template = require('lodash.template'), | ||
fs = require('fs'), | ||
path = require('path'), | ||
loaderUtils = require('loader-utils'), | ||
templatePath = path.join(__dirname, 'src', 'source.js.tpl'), | ||
@@ -17,2 +18,3 @@ compiled = template(fs.readFileSync(templatePath, 'utf8')), | ||
} | ||
var options = loaderUtils.getOptions(this) || {}; | ||
@@ -26,3 +28,8 @@ if(noTransform.test(this.resourcePath)) { | ||
source: source, | ||
requireAngular: '(require("angular"), angular)', | ||
requireAngular: typeof options.requireAngular === 'string' ? | ||
options.requireAngular | ||
: '(require("angular"), angular)', | ||
// Boolean options that default to true. | ||
forceRefresh: options.forceRefresh !== false, | ||
preserveState: options.preserveState !== false, | ||
}); | ||
@@ -29,0 +36,0 @@ |
{ | ||
"main": "index.js", | ||
"name": "ng-hot-reload-loader", | ||
"version": "1.0.1", | ||
"version": "2.0.0-0", | ||
"description": "Webpack hot loader for angularjs apps", | ||
@@ -12,5 +12,6 @@ "scripts": { | ||
"dependencies": { | ||
"loader-utils": "^1.1.0", | ||
"lodash.template": "^4.4.0", | ||
"ng-hot-reload-core": "^1.0.1" | ||
"ng-hot-reload-core": "^2.0.0-0" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
3909
31
3
3
+ Addedloader-utils@^1.1.0
+ 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)
+ Addedng-hot-reload-core@2.1.0(transitive)
- Removedng-hot-reload-core@1.0.1(transitive)
Updatedng-hot-reload-core@^2.0.0-0