yarn add -D @favi_ty/babel-plugin-esm-pikacdn
"plugins": ["@favi_ty/babel-plugin-esm-pikacdn"]import { Component, render } from "preact";import { Component, render } from "https://cdn.pika.dev/preact/8.5.2";transform import-path to url format that can be fetched from PikaCDN
- only the modules that exist in the
import-mapgenerated by snowpack - apply the version of
package.json
directory path where import-map.json exists (default as web_modules/)