diff options
author | Benoit Giannangeli <giann008@gmail.com> | 2017-05-09 11:36:14 +0200 |
---|---|---|
committer | Benoit Giannangeli <giann008@gmail.com> | 2017-05-09 11:36:14 +0200 |
commit | 697ef457e1b0eabd3aa9fb2332a5d04478b39603 (patch) | |
tree | 4d93ec7e3d1cc698a5c54de9785d688bf510ed15 /src/lualib.js | |
parent | 3e439ed653093e6e124a4997f64053164f1043b8 (diff) | |
download | fengari-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.js | 8 |
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; |