I have a very simple TypeScript file: ```ts export { default as bar } from './bar' ``` When transpiled with `tsc` (4.8) and `esModuleInterop` set to `true` the transpiled code will somehow look like this: ```js "use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.bar = void 0; var bar_1 = require("./bar"); Object.defineProperty(exports, "bar", { enumerable: true, get: function () { return __importDefault(bar_1).default; } }); ``` In this case, the lexer seems to be ignoring the `bar` export.
Activity
pfumagalli commentedon Nov 9, 2022
sample.zip
Attaching a little sample...
pfumagalli commentedon Nov 9, 2022
Moving the
__importDefaultstatement outside of the getter makes things work (omitting the rest for brevity):chentsulin commentedon Nov 30, 2022
Same as #69
Refrain from re-exporting defaults in entrypoints
Refrain from re-exporting defaults in entrypoints