Skip to content

Conversation

@vocksel
Copy link
Contributor

@vocksel vocksel commented Mar 25, 2023

Problem

Currently there is no support for roblox-ts (reported in #12 and flipbook-labs/flipbook#198) due to us not creating a unified _G table for modules to use and from the runtime library being cleared from the cache

Solution

  1. Added support for tracking assignments to _G
  2. Added a special case to skip the roblox-ts runtime when clearing a module's consumers from the cache
  3. Added the clearModule method which is can be called to clear a single module (and its consumers) from the cache
  4. clearModule is called automatically on cached modules that undergo an ancestry change or a change to the Source property

Fixes #12, fixes #13

@vocksel vocksel changed the title Fix roblox-ts erroring from use of _G Add support for roblox-ts Apr 22, 2023
@vocksel vocksel marked this pull request as ready for review April 22, 2023 20:08
@vocksel vocksel merged commit 42878b2 into main Apr 23, 2023
@vocksel vocksel deleted the fix-#12 branch April 23, 2023 02:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Modules 2+ levels deep not triggering reload Error when using roblox-ts

2 participants