Diff

util/import.lua @ 8570:a4ef8cfa97bd

util.import: Explicitly export the global import function [luacheck]
author Kim Alvefur <zash@zash.se>
date Wed, 07 Mar 2018 19:22:07 +0100
parent 8389:5d866eb8f18f
child 9692:affcbccc1dff
line wrap: on
line diff
--- a/util/import.lua	Wed Mar 07 19:21:24 2018 +0100
+++ b/util/import.lua	Wed Mar 07 19:22:07 2018 +0100
@@ -10,7 +10,7 @@
 
 local unpack = table.unpack or unpack; --luacheck: ignore 113 143
 local t_insert = table.insert;
-function import(module, ...)
+function _G.import(module, ...)
 	local m = package.loaded[module] or require(module);
 	if type(m) == "table" and ... then
 		local ret = {};