@favi_ty/babel-plugin-esm-pikacdn

1.0.2 • Public • Published

@favi_ty/babel-plugin-esm-pikacdn

Installation

yarn add -D @favi_ty/babel-plugin-esm-pikacdn

Usage

"plugins": ["@favi_ty/babel-plugin-esm-pikacdn"]

In

import { Component, render } from "preact";

Out

import { Component, render } from "https://cdn.pika.dev/preact/8.5.2";

Feature

transform import-path to url format that can be fetched from PikaCDN

  • only the modules that exist in the import-map generated by snowpack
  • apply the version of package.json

Options

dir: string

directory path where import-map.json exists (default as web_modules/)

Readme

Keywords

none

Package Sidebar

Install

npm i @favi_ty/babel-plugin-esm-pikacdn

Weekly Downloads

5

Version

1.0.2

License

WTFPL

Unpacked Size

3.7 kB

Total Files

5

Last publish

Collaborators

  • favi_ty