mirror of
https://github.com/littensy/charm.git
synced 2026-10-20 17:51:37 +00:00
15 lines
361 B
Text
15 lines
361 B
Text
local Package = script.Parent.Parent
|
|
local Packages = if Package.Parent:FindFirstChild("React")
|
|
then Package.Parent
|
|
else Package.Parent.Parent:FindFirstChild("ReactLua")
|
|
|
|
type React = typeof(require(Package.Parent.React))
|
|
|
|
local React: React
|
|
|
|
return function()
|
|
if not React then
|
|
React = Packages and require(Packages.React) :: React
|
|
end
|
|
return React
|
|
end
|