Loader
Loads Nevermore and handles loading!
This is a centralized loader that handles the following scenarios:
- Specific layouts for npm node_modules
- Layouts for node_modules being symlinked
- Multiple versions of modules being used in conjunction with each other
- Relative path requires
- Require by name
- Replication to client and server
Types
ModuleReference
A type that can be loaded into a module
Functions
bootstrapGame
This item only works when running on the server. ServerBootstraps the game by replicating packages to server, client, and shared.
local ServerScriptService = game:GetService("ServerScriptService")
local loader = ServerScriptService:FindFirstChild("LoaderUtils", true).Parent
local packages = require(loader).bootstrapGame(ServerScriptService.ik)
info
The game must be running to do this bootstrapping operation.
load
Returns a function that can be used to load modules relative to the script specified.
local require = require(script.Parent.loader).load(script)
local maid = require("Maid")