c6c2c4c8d5
* Hoist initial assignment to exported names in cjs to they are not blocked by bindings made by __exportStar * Copy hoisted identifiers so they do not create sourcemaps * Accept updated baselines
21 lines
572 B
TypeScript
21 lines
572 B
TypeScript
//// [main.ts]
|
|
/// <amd-module name="a"/>
|
|
export const a = 1;
|
|
|
|
//// [main.js]
|
|
(function (factory) {
|
|
if (typeof module === "object" && typeof module.exports === "object") {
|
|
var v = factory(require, exports);
|
|
if (v !== undefined) module.exports = v;
|
|
}
|
|
else if (typeof define === "function" && define.amd) {
|
|
define("a", ["require", "exports"], factory);
|
|
}
|
|
})(function (require, exports) {
|
|
"use strict";
|
|
exports.__esModule = true;
|
|
exports.a = void 0;
|
|
/// <amd-module name="a"/>
|
|
exports.a = 1;
|
|
});
|