5 ms·
I found most of the dependency woes to go away with import maps: https://deno.land/manual@v1.9.0/linking_to_external_code/import_maps https://deno.land/manual@v
by vexna 5y ago
I found most of the dependency woes to go away with import maps: https://deno.land/manual@v1.9.0/linking_to_external_code/import_maps https://deno.land/manual@v1.9.0/linking_to_external_code/imp...
- zkldi 5y agooh damn, that's exactly what i've wanted.
- sujayakar 5y agoit seems like libraries can't use import maps though, right? the final binary can provide that flag, but is there a way for library dependencies to specify their own import maps? the spec [1] has support for scoping, but I didn't see a way to integrate that with the Deno loader. [1] https://github.com/WICG/import-maps#scoping-examples https://github.com/WICG/import-maps#scoping-examples
- nikisweeting 5y agoExcept you have to make them manually. They could've trivially built a thing that takes your npm package.json and converts it to an import map internally, but instead you gotta manage all that hassle yourself because they don't want to play nice with npm. /rant