Skip to content
This repository was archived by the owner on Aug 7, 2021. It is now read-only.

Commit 47142bc

Browse files
committed
Fix a jshint warning about global.ELEMENT_REGISTRY
1 parent 9958191 commit 47142bc

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Diff for: index.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -56,17 +56,17 @@ exports.ExcludeUnusedElementsPlugin.prototype.apply = function (compiler) {
5656

5757
if (result.context.indexOf("tns-core-modules") === -1) {
5858
if (result.contextInfo.issuer &&
59-
result.contextInfo.issuer.indexOf("element-registry") !== -1 && global["ELEMENT_REGISTRY"] &&
60-
!global["ELEMENT_REGISTRY"][result.request]) {
59+
result.contextInfo.issuer.indexOf("element-registry") !== -1 && global.ELEMENT_REGISTRY &&
60+
!global.ELEMENT_REGISTRY[result.request]) {
6161
return callback();
6262

6363
} else {
6464
return callback(null, result);
6565
}
6666
}
6767

68-
if (result.contextInfo.issuer.indexOf("bundle-entry-points") !== -1 && global["ELEMENT_REGISTRY"] &&
69-
!global["ELEMENT_REGISTRY"][result.request]) {
68+
if (result.contextInfo.issuer.indexOf("bundle-entry-points") !== -1 && global.ELEMENT_REGISTRY &&
69+
!global.ELEMENT_REGISTRY[result.request]) {
7070
return callback();
7171
}
7272

0 commit comments

Comments
 (0)