diff --git a/lib/utils.js b/lib/utils.js index 069db48..138d2b6 100644 --- a/lib/utils.js +++ b/lib/utils.js @@ -45,22 +45,6 @@ function getCanonicalName(loader, normalized) { normalized = normalized.substr(0, pluginIndex); } - // defaultJSExtensions handling - if (loader.defaultJSExtensions && normalized.split('/').pop().split('.').pop() == 'js') { - // if we're in a package that disables defaultJSExtensions, leave as-is - var isDefaultExtensionPackage = false; - for (var p in loader.packages) { - if (normalized.substr(0, p.length) == p && (normalized.length == p.length || normalized[p.length] == '/')) { - if ('defaultExtension' in loader.packages[p]) - isDefaultExtensionPackage = true; - } - } - - // remove defaultJSExtension - if (!isDefaultExtensionPackage) - normalized = normalized.substr(0, normalized.length - 3); - } - // now just reverse apply paths rules to get canonical name var pathMatch, pathMatchLength = 0; var curMatchlength;