node/test/fixtures/es-modules/exports-cases3.js
Guy Bedford 1e8cb08edc module: named exports for CJS via static analysis
PR-URL: https://github.com/nodejs/node/pull/35249
Reviewed-By: Mary Marchini <oss@mmarchini.me>
Reviewed-By: Geoffrey Booth <webmaster@geoffreybooth.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Myles Borins <myles.borins@gmail.com>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Zeyu Yang <himself65@outlook.com>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
2020-09-28 18:27:25 -07:00

25 lines
No EOL
601 B
JavaScript

/*
* Transpiled with TypeScript from:
*
* export { π as pi } from './exports-cases.js';
* export default 'the default';
* export const name = 'name';
*/
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.name = void 0;
exports.default = 'the default';
exports.name = 'name';
var _external = require("./exports-cases2.js");
Object.keys(_external).forEach(function (key) {
if (key === "default" || key === "__esModule") return;
Object.defineProperty(exports, key, {
enumerable: true,
get: function () {
return _external[key];
}
});
});