Import Maps in Action

Опубликовано: 09 Декабрь 2024
на канале: A shot of code
1,129
33

In this web development tutorial we look at a practical use for import maps. JSPM has a CDN where we can pull NPM packages from and also has an import map generator that will provide us with the import maps needed for the packages to work with 'bare specifies' so just as if we were bundling. It is similar to say snowpack although the packages are not precompiled to native ES Modules, they are still using bare specifiers themseleves, and the import map solve this part for us.

This video follows on from an earlier one on import maps here:

   • Javascript ImportMaps - Bye Bye Build...  

This also looks into the latest idea that is prevalent in the industry of bundle less development. The practice of writing a website and iterating without the need for a bundler like webpack or rollup while doing so. These are still recommended for the production build however.

JSPM docs here:

https://jspm.org/