fix(wasm): undefined fs

This commit is contained in:
Sven SAULEAU 2018-03-14 16:23:51 +01:00
parent 861cca6c5a
commit d13b1255b4
No known key found for this signature in database
GPG Key ID: F5464AC83B687AD1
1 changed files with 1 additions and 1 deletions

View File

@ -89,7 +89,7 @@ class BaseWasmMainTemplatePlugin {
const generateLoadBinaryCode = path => `
new Promise(function (resolve, reject) {
try {
fs.readFile(${path}, function(err, buffer){
require("fs").readFile(${path}, function(err, buffer){
if (err) reject(err); else resolve(buffer);
});
} catch (err) {