Skip to content

Commit

Permalink
refactor: code
Browse files Browse the repository at this point in the history
  • Loading branch information
snitin315 committed Sep 2, 2021
1 parent 1e47e31 commit 468974d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Server.js
Expand Up @@ -1972,7 +1972,7 @@ class Server {
// If key = main.other.mjs && filename = main.other => true
if (
splitKey.length - 1 === splitOutputFilename.length &&
key.split(".")[0] === outputFilename.split(".")[0]
splitKey[0] === outputFilename.split(".")[0]
) {
extension = splitKey[splitKey.length - 1];
isOutputModule = value.javascriptModule;
Expand Down

0 comments on commit 468974d

Please sign in to comment.