mirror of
https://github.com/NotAShelf/nvf.git
synced 2025-09-06 10:21:31 +00:00
wrapper/lazy: add beforeSetup option
Useful for avoiding a million require calls in setupOpts.
This commit is contained in:
parent
99a4eafa34
commit
ed69816f68
2 changed files with 10 additions and 0 deletions
|
@ -76,6 +76,7 @@
|
|||
else
|
||||
mkLuaInline ''
|
||||
function()
|
||||
${optionalString (spec.beforeSetup != null) spec.beforeSetup}
|
||||
${
|
||||
optionalString (spec.setupModule != null)
|
||||
"require(${toJSON spec.setupModule}).setup(${toLuaObject spec.setupOpts})"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue