Skip to content

Commit

Permalink
Remove require and pretty-print integration in luvi
Browse files Browse the repository at this point in the history
  • Loading branch information
creationix committed Jan 5, 2016
1 parent f98b7a2 commit b3ea266
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions src/lua/luvibundle.lua
Original file line number Diff line number Diff line change
Expand Up @@ -321,19 +321,6 @@ local function commonBundle(bundlePaths, mainPath, args)

_G.args = args

-- Auto-register the require system if present
local mainRequire
local stat = bundle.stat("deps/require.lua")
if stat and stat.type == "file" then
bundle.register('require', "deps/require.lua")
mainRequire = require('require')("bundle:main.lua")
end

-- Auto-setup global p and libuv version of print
if mainRequire and bundle.stat("deps/pretty-print") or bundle.stat("deps/pretty-print.lua") then
_G.p = mainRequire('pretty-print').prettyPrint
end

if not args then
return bundle, mainRequire
end
Expand Down

0 comments on commit b3ea266

Please sign in to comment.