mirror of
https://github.com/marko-js/marko.git
synced 2025-12-08 19:26:05 +00:00
Move requires to the top of the template
This commit is contained in:
parent
400111e972
commit
7e6a8d1a2a
@ -36,7 +36,7 @@ RequireNode.prototype = {
|
||||
}
|
||||
|
||||
if (module && varName) {
|
||||
template.statement('var ' + varName + '=require(' + module + ');');
|
||||
template.addStaticVar(varName, 'require(' + module + ')');
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user