You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Filip Maj (JIRA)" <ji...@apache.org> on 2017/06/09 14:00:24 UTC
[jira] [Commented] (CB-12901) Remove lazy loading of node modules
from cordova tooling
[ https://issues.apache.org/jira/browse/CB-12901?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16044462#comment-16044462 ]
Filip Maj commented on CB-12901:
--------------------------------
FYI I have a branch with this in progress here: https://github.com/filmaj/cordova-lib/tree/no-lazy-load
> Remove lazy loading of node modules from cordova tooling
> --------------------------------------------------------
>
> Key: CB-12901
> URL: https://issues.apache.org/jira/browse/CB-12901
> Project: Apache Cordova
> Issue Type: Task
> Components: cordova-common, cordova-lib
> Reporter: Filip Maj
> Assignee: Filip Maj
>
> There are various {{addProperty*}} methods that execute {{require}} at runtime. While this improves load time and only loads modules that are necessary, it also makes it harder to test, as spying and mocking is more difficult.
> The 300ms load time improvement, in the best case, is not worth the difficulty in writing unit tests.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org