From 697ef457e1b0eabd3aa9fb2332a5d04478b39603 Mon Sep 17 00:00:00 2001 From: Benoit Giannangeli Date: Tue, 9 May 2017 11:36:14 +0200 Subject: Webpack (single bundle for now) --- src/lualib.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/lualib.js') 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; -- cgit v1.2.3-54-g00ecf