Reproduction link or steps
https://github.com/SuperchupuDev/tsdown-node-protocol-repro/blob/b16fb58
What is expected?
the following import generated by rolldown should have the node protocol removed, like this:
import { createRequire } from "module";
What is actually happening?
it fails to remove the node: protocol
import { createRequire } from "node:module";
Any additional comments?
someone opened a pr on fdir to switch to tsdown, thecodrr/fdir#147, and i suggested to use the removeNodeProtocol option to ensure compatibility with node 12. when testing locally i noticed there was one import that had it