high85%
Turbopack dynamic Worker path includes TypeScript declaration files causing build failure
When a dynamic new Worker() path is used, Turbopack expands the directory context to include all files, including .d.ts, .d.cts, and .d.mts declaration files, which cannot be loaded at runtime. This leads to 'Unknown module type' or module format mismatch errors and breaks builds.
