Skip to content

Commit

Permalink
fix(build): strip .js extension from moduleIds
Browse files Browse the repository at this point in the history
resolves aurelia#533
  • Loading branch information
JeroenVinke committed Apr 6, 2017
1 parent 05fcdf7 commit 4a4c418
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/build/amodro-trace/lib/loader/Loader.js
Expand Up @@ -38,6 +38,10 @@ function normalizeModuleId(moduleId) {
moduleId = moduleId.split('!')[1];
}

if (moduleId.length > 3 && moduleId.slice(-3) === '.js') {
moduleId = moduleId.slice(0, -3);
}

return moduleId;
}

Expand Down

0 comments on commit 4a4c418

Please sign in to comment.