* Preserve the variable name when exporting an arrow or anonymous function This allows the browser or node to properly name the (arrow) function * Updated tests to reflect previous change * Remove duplicated comment * Transforms variable.initializer using moduleExpressionElementVisitor * PR feedback: rbuckton - Use isArrowFunction and isFunctionExpression * PR feedback: rbuckton - Consider ClassExpresion, they can also be named based on the variable.
13 lines
328 B
TypeScript
13 lines
328 B
TypeScript
//// [topLevelLambda4.ts]
|
|
export var x = () => this.window;
|
|
|
|
//// [topLevelLambda4.js]
|
|
define(["require", "exports"], function (require, exports) {
|
|
"use strict";
|
|
var _this = this;
|
|
exports.__esModule = true;
|
|
exports.x = void 0;
|
|
var x = function () { return _this.window; };
|
|
exports.x = x;
|
|
});
|