use Program builder
This commit is contained in:
@@ -8,10 +8,7 @@ module.exports = function (namespace) {
|
||||
var body = [];
|
||||
var container = t.functionExpression(null, [], t.blockStatement(body));
|
||||
|
||||
var tree = {
|
||||
type: "Program",
|
||||
body: [t.expressionStatement(t.callExpression(container, []))]
|
||||
};
|
||||
var tree = t.program([t.expressionStatement(t.callExpression(container, []))]);
|
||||
|
||||
body.push(t.variableDeclaration("var", [
|
||||
t.variableDeclarator(t.identifier("self"), t.conditionalExpression(
|
||||
|
||||
Reference in New Issue
Block a user