Using ESModules

How to use esmodules using JAMStack Engine

You can use es modules inside JAMStack to import any esmodule we recommend using CDN builds or SnowPack.

Example:

const {
html,
define,
store
} = await import("https://cdn.skypack.dev/[email protected]^4.2.1")

As a result, the code is packed into the script of type module You can use URL imports of esmodules.