Open Bisstocuz opened 11 months ago
Good point, it's not currently exposed. The best I can suggest right now would just be to copy and paste the implementation exactly.
Good point, it's not currently exposed. The best I can suggest right now would just be to copy and paste the implementation exactly.
Another question is, if I tried to implement own resolveLatestTarget
, the TypeScript will give a warning "cannot assign this: Provider
to this: Resolver
". I'm really getting numb from TypeScript.
This should definitely be easier... you're welcome to make any suggestions to the public interface to improve the user experience here.
I wanna write a custom provider like unpkg.ts to use
vite-plugin-jspm
.But these code below cannot work:
Vite reported:
How to call
resolveLatestTarget
outside of@jspm/generator
?