remove useless root variable in umd module formatter
This commit is contained in:
@@ -43,6 +43,6 @@ UMDFormatter.prototype.transform = function (ast) {
|
||||
|
||||
//
|
||||
|
||||
var call = b.callExpression(runner, [b.thisExpression(), factory]);
|
||||
var call = b.callExpression(runner, [factory]);
|
||||
program.body = [b.expressionStatement(call)];
|
||||
};
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
(function (root, factory) {
|
||||
(function (factory) {
|
||||
if (typeof define === "function" && define.amd) {
|
||||
define(AMD_ARGUMENTS, factory);
|
||||
} else if (typeof exports !== "undefined") {
|
||||
|
||||
Reference in New Issue
Block a user