```bash echo "export type * from './types'" | npx esbuild --loader=ts ``` results in: ``` ✘ [ERROR] Expected identifier but found "*" <stdin>:1:12: 1 │ export type * from './types' ╵ ^ 1 error ```
Activity
evanw commentedon Jun 17, 2022
That's not valid TypeScript. The TypeScript compiler says this:
Please check that your code is valid before assuming the problem is with esbuild. Closing this issue as invalid.
ignore invalid ts `export type * from x` (#2329)
stefanprobst commentedon Jun 18, 2022
oh sorry! this was in generated code so i assumed it was valid. sorry for that, should have checked. the upstream issue for this seems to be microsoft/TypeScript#37238 / microsoft/TypeScript#48508 btw.