Open huseeiin opened 1 month ago
After invesitgating, bun does support this feature. but i'm getting
1 | import Router = require("./router");
^
error: Expected "from" but found "="
at input.jsx:1:15
Bun v1.1.20 (Linux x64)
and i couldn't make a minimal reproduction also, my file name is not "input.jsx" this is a weird error
i created a non-minimal reproduction: https://github.com/huseeiin/bun-ts-require-bug
What is the problem this feature would solve?
currently, bun supports
import fs = require("node:fs");
(it transpiles toimport.meta.require
) inbun build
but not in runtime.What is the feature you are proposing to solve the problem?
this should be a part of typescript support
What alternatives have you considered?
No response