Search found 3 matches

by jonraphaelson
Fri Sep 29, 2023 7:55 pm
Forum: Support and Development
Topic: is custom package.loaders a bad idea?
Replies: 5
Views: 4919

Re: is custom package.loaders a bad idea?

Ok, thinking more about it, `require` really isn't doing anything special; it's just a built-in function with a lookup priority and caching. Digging through the code in cargo was really helpful, @dusoft, thank you! @Ross, yeah, though it gives you path-based caching too. more thinking about it demys...
by jonraphaelson
Thu Sep 28, 2023 8:14 pm
Forum: Support and Development
Topic: is custom package.loaders a bad idea?
Replies: 5
Views: 4919

Re: is custom package.loaders a bad idea?

yeah, I guess `require` itself isn't really pulling anything; that library looks nice, I'll dig into it, thank you!
by jonraphaelson
Thu Sep 28, 2023 3:07 pm
Forum: Support and Development
Topic: is custom package.loaders a bad idea?
Replies: 5
Views: 4919

is custom package.loaders a bad idea?

Hey y'all, I'm playing around with the driver parts of my application, just trying new things out, and I ended up making this little loader which allows using `require` to load non-lua (non-code) files, kind of like we do in webpack. Using it, you're able to do the following: -- insert just before n...