Skip to content

Commit a5dab1a

Browse files
committed
Fix derp
1 parent 2015afb commit a5dab1a

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

index.js

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,12 @@ module.exports = function(source) {
6363
} else {
6464
wasmFile = fs
6565
.readdirSync(path.join(outDir, 'deps'))
66-
.find(f => /\.wasm$/.test(f))
67-
if (!wasmFile) {
68-
return callback(new Error('No wasm file found', null))
69-
}
66+
.find(f => /\.wasm$/.test(f));
67+
wasmFile = path.join(outDir, 'deps', wasmFile)
68+
}
69+
70+
if (!wasmFile) {
71+
return callback(new Error('No wasm file found', null))
7072
}
7173

7274
// Emit the wasm file

0 commit comments

Comments
 (0)