You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tapestry.apache.org by "Howard M. Lewis Ship (JIRA)" <ji...@apache.org> on 2013/11/04 22:26:17 UTC

[jira] [Closed] (TAP5-2149) Support JavaScript aggregation of modules, not just libraries

     [ https://issues.apache.org/jira/browse/TAP5-2149?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Howard M. Lewis Ship closed TAP5-2149.
--------------------------------------

       Resolution: Fixed
    Fix Version/s: 5.4

> Support JavaScript aggregation of modules, not just libraries
> -------------------------------------------------------------
>
>                 Key: TAP5-2149
>                 URL: https://issues.apache.org/jira/browse/TAP5-2149
>             Project: Tapestry 5
>          Issue Type: Improvement
>          Components: tapestry-core
>    Affects Versions: 5.4
>            Reporter: Howard M. Lewis Ship
>            Assignee: Howard M. Lewis Ship
>            Priority: Critical
>              Labels: javascript, requirejs
>             Fix For: 5.4
>
>
> One of the last major hurdles is to support aggregation of AMD modules; this would imply that the modules become part of a JavaScriptStack.
> There are definitely some challenges to this; primarily the need to rewrite the JavaScript slightly:
> define(["dep1", "dep2", "dep3"], function(dep1, dep2, dep3) { ... });
> needs to be rewitten to:
> define("my/module/name", ["dep1", "dep2", "dep3", function(dep1, dep2, dep3) { ... });
> This can probably be accomplished using a regular expression. 
> RequireJS's r.js utility is powerful; part of its job is to automatically hunt down transitive dependencies from a root namespace.  I don't know if we can effectively duplicate that; because of issues such as CoffeeScript vs. JavaScript (vs. other languages), the fact that certain modules are created at runtime, and other factors ... we may need to the user to supply a list of which modules should be included, and the others will be fetched on-demand.



--
This message was sent by Atlassian JIRA
(v6.1#6144)