mirror of
https://github.com/littensy/charm.git
synced 2026-10-20 17:51:37 +00:00
fix: search for react in _Index
This commit is contained in:
parent
169025983a
commit
ecfb221fdf
1 changed files with 2 additions and 0 deletions
|
|
@ -1,6 +1,8 @@
|
|||
local Package = script.Parent.Parent
|
||||
local Index = script:FindFirstAncestor("_Index")
|
||||
local Packages = if Package.Parent:FindFirstChild("React")
|
||||
then Package.Parent
|
||||
elseif Index then Index.Parent
|
||||
else Package.Parent.Parent:FindFirstChild("ReactLua")
|
||||
|
||||
type React = typeof(require(Package.Parent.React))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue