Galooshi / import-js

A tool to simplify importing JS modules
MIT License
526 stars 70 forks source link

How to configure for sveltejs #534

Closed knobo closed 7 months ago

knobo commented 5 years ago

How can I configure this to work with sveltejs? https://svelte.dev/

imports should be inserted into inside of <script></script> tags. Files are named .svelte

mikabytes commented 7 months ago

Hi @knobo

There is no support for Svelte at the moment. I believe introducing support for it would require us to change the parser (correct me if I'm wrong), which might be a major undertaking. I'd be happy to assist if someone with good Svelte knowledge is interested in submitting a PR for it.

mikabytes commented 7 months ago

Closing as stale, but please do reopen if/when someone wants to take this on.