Thoughts about import-esm and import-deno
#420
Replies: 2 comments 3 replies
-
|
The library already uses ENV variables to configure the output dir of types, we can use another env var to toggle the import way to some enum like |
Beta Was this translation helpful? Give feedback.
-
|
Hey, I like using the env variable to configure the extension. In addition, I would like to point out that this package needs a way to export the types within |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
As I explained here, I don't love the
import-esmfeature, especially now that it is causing issues with @eythaann attempting to add support for Deno, which expects import statements to have a.tsextension.Doing this through another feature would mean we have two incompatible features, making our CI test for
--all-featuresquite awkward to say the least.With that in mind, I suggest we drop the
import-esmfeature entirely (or at least flag it as deprecated and emit a warning for those using it to show our intent to remove it) and add a new attribute that allows the user to control what file extension ourimportstatments use.I'd like to hear some thoughts about this though, what do you think @NyxCode?
It'd also be nice to hear what the people who asked for
import-esmthink as well, though I think it's unlikely they'd answer, given that it's been 2 years, still, I'll tag them here in the off chance they see thiscc: @carlocorradini - original issue author
cc: @h7kanna - hearted the original issue
cc: @grindarius - hearted the original issue
Beta Was this translation helpful? Give feedback.
All reactions