sveltejs / svelte-preprocess

A ✨ magical ✨ Svelte preprocessor with sensible defaults and support for: PostCSS, SCSS, Less, Stylus, Coffeescript, TypeScript, Pug and much more.
MIT License
1.73k stars 147 forks source link

support `moduleResolution` `Bundler` #612

Closed DetachHead closed 9 months ago

DetachHead commented 9 months ago

Is your feature request related to a problem? Please describe. typescript 5.0 added the new "Bundler" module resolution mode: https://www.typescriptlang.org/tsconfig#moduleResolution

Describe the solution you'd like add bundler to the list of allowed moduleResolution options

Preprocessing failed
Error: error TS6046: Argument for '--moduleResolution' option must be: 'node', 'classic', 'node16', 'nodenext'.

Describe alternatives you've considered nodenext which enforces .js file extensions in imports. this breaks many of my dependencies because they assume this isn't needed

How important is this feature to you? very. none of the other moduleResolution options work for my project:

dummdidumm commented 9 months ago

svelte-preprocess is not checking any of these flags, it sounds like you have an old TS version in your project somewhere. If you still think this is a svelte-preprocess error, please provide a reproduction repo.

DetachHead commented 9 months ago

yeah you're right, i thought i updated to typescript 5 but i was still on 4.9