open-index/open-npm huggingface dataset:
npm package: @favi_ty/babel-plugin-esm-pikacdn
Description: ## Installation
Author: favi_ty
Latest version: 1.0.2

# @favi_ty/babel-plugin-esm-pikacdn

## Installation

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

## Usage

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

## In

```js
import { Component, render } from "preact";
```

## Out

```js
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](https://www.pika.dev/cdn)

- **only** the modules that exist in the `import-map` generated by [snowpack](https://www.snowpack.dev/#import-maps)
- apply the version of `package.json`

## Options

### dir: string

directory path where `import-map.json` exists (default as `web_modules/`)
npm package: @favi_ty/babel-plugin-esm-url-resolver
Description: add the `js` extension so that the import path can be executed as a URL
Author: favi_ty
Latest version: 1.2.3

# @favi_ty/babel-plugin-esm-url-resolver

add the `js` extension so that the import path can be executed as a URL

- only transpiling relative path. (may be only your repository sources)
- if the path already has an extensions, do nothing.
- if you importing `index` files, it must be specified `/index` in the path strings.

# Installation

```
yarn add -D @favi_ty/babel-plugin-esm-url-resolver
```

# Usage

```js
"plugins": ["@favi_ty/babel-plugin-esm-url-resolver"]
```

## In

```js
import * as src from "./module1";
```

## Out

```js
import * as src from "./module1.js";
```

# Options

## dirs?: String[]

include the path that starts with one of the values in the transformation target

```json
{
  "dirs": ["/src"]
}
```

in:

```js
import lib from "/src/lib";
import lib2 from "/src/node/lib2";
import lib3 from "src/node/lib3"; // that's not transform!
```

out:

```js
import lib from "/src/lib.js";
import lib2 from "/src/node/lib2.js";
import lib3 from "src/node/lib3"; // that's not transform!
```