Uploaded image for project: 'Tapestry 5'
  1. Tapestry 5
  2. TAP5-2511

Named AMD modules cannot be added to JavaScript stack

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 5.4
    • None
    • tapestry-core
    • None

    Description

      The define statement rewriting logic in org.apache.tapestry5.internal.services.assets.JavaScriptStackAssemblerImpl.ModuleReader breaks stacks with named modules. For example, jquery 3.0-alpha1 (https://cdnjs.cloudflare.com/ajax/libs/jquery/3.0.0-alpha1/jquery.js) uses

      define( "jquery", [], function() {
      		return jQuery;
      	});
      

      The ModuleReader turns that into

      define("jquery", "jquery", [], function() {
      		return jQuery;
      	});
      

      which will not work. We should probably not rewrite named define calls.

      Attachments

        Activity

          People

            Unassigned Unassigned
            jkemnade Jochen Kemnade
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: