Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using absolutePaths with ./../ does not fully process the relative paths. #97

Closed
rwjblue opened this issue Feb 4, 2015 · 0 comments
Closed
Assignees

Comments

@rwjblue
Copy link
Contributor

rwjblue commented Feb 4, 2015

Input:

import blah from './../foo';

blah();

Output:

define('inner/relative-import-inner', ['inner/../foo'], function (blah) {

    'use strict';

    blah['default']();

});

When compiled with:

esperanto.toAmd(content, {
  amdName: moduleName,
  strict: true,
  absolutePaths: true
}).code

My expected output is:

define('inner/relative-import-inner', ['foo'], function (blah) {

    'use strict';

    blah['default']();

});
@Rich-Harris Rich-Harris self-assigned this Feb 4, 2015
Rich-Harris added a commit that referenced this issue Feb 4, 2015
fix absolute paths in cases like ./../foo - fixes #97
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants