When using CommonJS to require( ) scripts in Node you can use just the name of the package. Since NodeJS has access to the filesystem, it knows to look in the node_modules folder plus the global installs location.
With ES Modules and JavaScript in the Browser, we don't have that luxury. However we can use import maps to create labels for different locations on our servers.
Code from video: gist.github.co...
Video about Luxon: • A Complete Tutorial on...
Негізгі бет Using Import Maps with ES Modules
Пікірлер: 12