Skip to content
This repository was archived by the owner on Apr 16, 2020. It is now read-only.

Commit 2cc3722

Browse files
committed
it was not a hack
1 parent 398979c commit 2cc3722

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

lib/internal/modules/esm/default_resolve.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ const legacyExtensionFormatMap = {
4545
};
4646

4747
if (experimentalWasmModules) {
48-
// This is a total hack
4948
Object.assign(extensionFormatMap, {
5049
'.wasm': 'wasm'
5150
});

src/module_wrap.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ static const char* const EXTENSIONS[] = {
5151
".cjs",
5252
".js",
5353
".json",
54+
".wasm",
5455
".node"
5556
};
5657

0 commit comments

Comments
 (0)