summaryrefslogtreecommitdiff
path: root/src/lualib.js
diff options
context:
space:
mode:
authorBenoit Giannangeli <giann008@gmail.com>2017-05-09 11:36:14 +0200
committerBenoit Giannangeli <giann008@gmail.com>2017-05-09 11:36:14 +0200
commit697ef457e1b0eabd3aa9fb2332a5d04478b39603 (patch)
tree4d93ec7e3d1cc698a5c54de9785d688bf510ed15 /src/lualib.js
parent3e439ed653093e6e124a4997f64053164f1043b8 (diff)
downloadfengari-697ef457e1b0eabd3aa9fb2332a5d04478b39603.tar.gz
fengari-697ef457e1b0eabd3aa9fb2332a5d04478b39603.tar.bz2
fengari-697ef457e1b0eabd3aa9fb2332a5d04478b39603.zip
Webpack (single bundle for now)
Diffstat (limited to 'src/lualib.js')
-rw-r--r--src/lualib.js8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/lualib.js b/src/lualib.js
index 549ab28..ed02273 100644
--- a/src/lualib.js
+++ b/src/lualib.js
@@ -14,9 +14,11 @@ const LUA_TABLIBNAME = "table";
module.exports.LUA_TABLIBNAME = LUA_TABLIBNAME;
module.exports[LUA_TABLIBNAME] = require("./ltablib.js").luaopen_table;
-const LUA_IOLIBNAME = "io";
-module.exports.LUA_IOLIBNAME = LUA_IOLIBNAME;
-module.exports[LUA_IOLIBNAME] = require("./liolib.js").luaopen_io;
+if (!WEB) {
+ const LUA_IOLIBNAME = "io";
+ module.exports.LUA_IOLIBNAME = LUA_IOLIBNAME;
+ module.exports[LUA_IOLIBNAME] = require("./liolib.js").luaopen_io;
+}
const LUA_OSLIBNAME = "os";
module.exports.LUA_OSLIBNAME = LUA_OSLIBNAME;