-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FIX] Improve recognition of main module in case of bundles (#341)
This is a port of several changes from the Java bundle tooling, which have been made after the initial migration of the tooling. Additionally, code coverage has been slightly improved by adding further unit and integration tests. Errors that have been revealed by the new tests have been fixed, too. Details about the migrated changes: ---- Change 3312369 (improve recognition of main module in case of bundles): So far, the module analyzer always assumed the first module definition to be the main definition. This failed at least for CVOM bundles but might also fail for others. The analysis has been improved and now accepts a module as main module only in the following cases: - if it is an unnamed module - if it is a named module whose name matches the external name - if it is a named module and there's only one module (no bundle) If multiple module definitions match the above criteria, this is reported as an error. Additionally, AMD special dependencies ('require', 'exports', 'module') are no longer reported in the dependency info. ---- Change 3945349 (JSModuleAnalyzer fails on modules that don't declare a name) Basically, the JavaScript implementation was less sensitive to this issue. But if a resource could have a dependency to another resource named "null", the JavaScript tooling would fail, too. Although this looked like a purely theoretical scenario, adding a protective 'if' was trivial enough to just do it. ---- Change 3562114 (fix dep. analysis of new evo bundles) - recognize and evaluate sap.ui.require.preload calls - write and extract bundle name and raw module names
- Loading branch information
1 parent
b1d727e
commit 7a560b4
Showing
47 changed files
with
1,062 additions
and
147 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.