Skip to content

2.1.12/13 issue with multiple modules and ".." #1131

@jbedard

Description

@jbedard

It looks like one of the 2.1.12/13 fixes broke the use of ".." along with multiple modules. The better normalizing of ".." is great (I've worked around it in the past), but it seems like it is currently also triming modules?

Here's a snippet that worked in 2.1.11 but no longer works in 2.1.13.

<script>
      define('modA', [], function() {
        var CONFIG = "foo";

        return {
          load: function(name, req, onload, config) {
            req([name + "-" + CONFIG], onload, onload.error);
          }
        }
      });

      define('modB', [], function() {
        return {
          load: function(name, req, onload, config) {
            document.body.appendChild( document.createTextNode(name) );
          }
        }
      });

      require(['modA!modB!no-dotdot']);
      require(['modA!modB!../one-dotdot']);
      require(['modA!modB!../../two-dotdot-is-broken']);
</script>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions