Skip to content

Commit 81f5e82

Browse files
committed
Allow relative module identifiers that end with .js
1 parent 634f761 commit 81f5e82

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/loader.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -443,7 +443,7 @@ var AMDLoader;
443443
}
444444
let result = moduleId;
445445
let results;
446-
if (!AMDLoader.Utilities.endsWith(result, '.js') && !AMDLoader.Utilities.isAbsolutePath(result)) {
446+
if (!AMDLoader.Utilities.isAbsolutePath(result)) {
447447
results = this._applyPaths(result);
448448
for (let i = 0, len = results.length; i < len; i++) {
449449
if (this.isBuild() && results[i] === 'empty:') {

0 commit comments

Comments
 (0)