Skip to content

Commit

Permalink
Creating yarn package with patches from ocombe#225
Browse files Browse the repository at this point in the history
  • Loading branch information
boroth committed Jul 9, 2024
1 parent c282f8f commit 54486a0
Show file tree
Hide file tree
Showing 6 changed files with 11,516 additions and 5 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@

Lazy load modules & components in AngularJS

## LeadingReach changes
LeadingReach changes based on https://github.com/ocombe/ocLazyLoad/issues/225. Made changes in /dist/ocLazyLoad.js, and created a yarn package with `yarn pack dist/ocLazyLoad.js`.
The resulting oclazyload-v1.1.0-lr.tgz file was then copied to the apphead repository to be used with `yarn`.

----
<p align="center">

Expand Down
9 changes: 7 additions & 2 deletions dist/modules/ocLazyLoad.core.js
Original file line number Diff line number Diff line change
Expand Up @@ -195,9 +195,14 @@
if (angular.isDefined(runBlocks[moduleName]) && (newModule || params.rerun)) {
tempRunBlocks = tempRunBlocks.concat(runBlocks[moduleName]);
}
_invokeQueue(providers, moduleFn._invokeQueue, moduleName, params.reconfig);
_invokeQueue(providers, moduleFn._configBlocks, moduleName, params.reconfig); // angular 1.3+

// LR changes for HTML5Mode, see https://github.com/ocombe/ocLazyLoad/issues/225#issue-102323942
if (newModule) {
_invokeQueue(providers, moduleFn._invokeQueue, moduleName, params.reconfig);
_invokeQueue(providers, moduleFn._configBlocks, moduleName, params.reconfig); // angular 1.3+
}
broadcast(newModule ? 'ocLazyLoad.moduleLoaded' : 'ocLazyLoad.moduleReloaded', moduleName);

registerModules.pop();
justLoaded.push(moduleName);
}
Expand Down
9 changes: 7 additions & 2 deletions dist/ocLazyLoad.js
Original file line number Diff line number Diff line change
Expand Up @@ -202,8 +202,13 @@
if (angular.isDefined(runBlocks[moduleName]) && (newModule || params.rerun)) {
tempRunBlocks = tempRunBlocks.concat(runBlocks[moduleName]);
}
_invokeQueue(providers, moduleFn._invokeQueue, moduleName, params.reconfig);
_invokeQueue(providers, moduleFn._configBlocks, moduleName, params.reconfig); // angular 1.3+

// LR changes for HTML5Mode, see https://github.com/ocombe/ocLazyLoad/issues/225#issue-102323942
if (newModule) {
_invokeQueue(providers, moduleFn._invokeQueue, moduleName, params.reconfig);
_invokeQueue(providers, moduleFn._configBlocks, moduleName, params.reconfig); // angular 1.3+
}

broadcast(newModule ? 'ocLazyLoad.moduleLoaded' : 'ocLazyLoad.moduleReloaded', moduleName);
registerModules.pop();
justLoaded.push(moduleName);
Expand Down
Binary file added dist/oclazyload-v1.1.0-lr.tgz
Binary file not shown.
Loading

0 comments on commit 54486a0

Please sign in to comment.