Skip to content

Commit

Permalink
Allow relative module identifiers that end with .js
Browse files Browse the repository at this point in the history
  • Loading branch information
bpasero committed Aug 20, 2024
1 parent 634f761 commit 81f5e82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/loader.js
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,7 @@ var AMDLoader;
}
let result = moduleId;
let results;
if (!AMDLoader.Utilities.endsWith(result, '.js') && !AMDLoader.Utilities.isAbsolutePath(result)) {
if (!AMDLoader.Utilities.isAbsolutePath(result)) {
results = this._applyPaths(result);
for (let i = 0, len = results.length; i < len; i++) {
if (this.isBuild() && results[i] === 'empty:') {
Expand Down

0 comments on commit 81f5e82

Please sign in to comment.