ezolenko / rollup-plugin-typescript2

Rollup plugin for typescript with compiler errors.
MIT License
819 stars 71 forks source link

add support for deno #472

Open javadbat opened 1 month ago

javadbat commented 1 month ago

Troubleshooting

What happens and why is it incorrect

recently I've been trying to move my entire design-system build and test process to Deno. what makes it hard is the different approach between nodejs typescript and deno typescript module path-finding methods. deno wants us to import modules by file name extension like "../foo/bar.ts" but the node says we must import ts and js without the file extension. currently, I solve this by creating different workspaces for my front-end and builder codes that use Deno.

is there any way we can configure the bundler to ignore file extension so it would be acceptable by both rollup-typescript2 and Deno?

Environment

Deno and windows the repository I'm working on is https://github.com/javadbat/design-system

Versions

1.4

1.4