4 ms·
Here's a quick example of how to use import maps to get Node-like imports for ES modules distributed on NPM like lodash-es: https://gist.github.com/MarkTiedeman
by mark_and_sweep 6y ago
Here's a quick example of how to use import maps to get Node-like imports for ES modules distributed on NPM like lodash-es: https://gist.github.com/MarkTiedemann/4ac5837195f52d24bb1decfac60dcb2d https://gist.github.com/MarkTiedemann/4ac5837195f52d24bb1dec...
- nikisweeting 6y agoI know I sound like a broken record at this point, but wouldn't it be helpful if Deno just built something like this in automatically to make those import maps given a lockfile: https://www.npmjs.com/package/@import-maps/generate/v/0.1.0 https://www.npmjs.com/package/@import-maps/generate/v/0.1.0 This way you'd get both the benefits of web standards compliance with the generated explicit import maps, and backward compatibility and ease-of-migration for npm/yarn users.