Closed creationix closed 8 years ago
Still left to do.
Updated luvi is being published. Most the TODO items regarding luvit-loader functionality can't be tested in lit since it doesn't use those features. I'll punt them for the next step integrating with luvit.
+1
In order to make the luvit ecosystem more friendly with the existing lua ecosystem, luvit's custom require is being replaced with a loader plugin for the native require. This PR ports lit to this new system.
luvit-loader.lua
to the root. This adds a new loader that implements the old luvit require search paths as a loader function. The main difference is files are loaded using plainloadfile
orloadstring
without setting a custom environment and injecting fake globals.exports
table.exports
table.This depends on changes to luvi (removing the
luvit/require
hook) and changes to the git submodule. Look for theluvly
branches of both those projects.To test this, make sure to use a custom luvi with the proposed changes from it's
luvly
branch.