Closed Rich-Harris closed 9 years ago
@stefanpenner any feedback on #69 before I merge it? It converts relative paths to absolute for both AMD and UMD (CJS require
statements are left alone):
esperanto.toAmd( source, {
amdName: 'my/module/id',
absolutePaths: true
});
Passing absolutePaths: true
without an amdName
is an error.
See e.g. https://github.com/esperantojs/esperanto/blob/absolute-paths/test/strictMode/output/umd/absolutePaths.js for example output
Released 0.6.5 with this feature
e.g.
Right now this transpiles to AMD like this:
Where named modules are used, it would be helpful to do this instead:
Ref https://github.com/ef4/broccoli-es6modules/pull/4#issuecomment-69924193