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/defs.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/defs.js') diff --git a/src/defs.js b/src/defs.js index 3b5a923..be27032 100644 --- a/src/defs.js +++ b/src/defs.js @@ -293,7 +293,7 @@ const LUA_VDIR = LUA_VERSION_MAJOR + "." + LUA_VERSION_MINOR; module.exports.LUA_VDIR = LUA_VDIR; let os = false; -if (typeof require === "function" && (os = require('os')) && typeof os.platform === "function" && os.platform() === 'win32') { +if (!WEB && os.platform() === 'win32') { const LUA_DIRSEP = "\\"; module.exports.LUA_DIRSEP = LUA_DIRSEP; -- cgit v1.2.3-54-g00ecf