# babel-plugin-transform-import-scripts-resolve

> Map named dependencies to relative paths for `importScripts` calls in Service Worker scripts.

Latest version **1.0.1** (published 2016-12-19) · ISC license · 0 weekly downloads

## Install

```sh
npm install babel-plugin-transform-import-scripts-resolve
pnpm add babel-plugin-transform-import-scripts-resolve
yarn add babel-plugin-transform-import-scripts-resolve
bun add babel-plugin-transform-import-scripts-resolve
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2016-12-19 |
| First published | 2016-12-19 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Sebastiaan Deckers |
| Maintainers | seb |
| Keywords | babel, plugin, serviceworker, importscripts |

## Links

- npm: https://www.npmjs.com/package/babel-plugin-transform-import-scripts-resolve
- Repository: https://gitlab.com/sebdeckers/babel-plugin-transform-import-scripts-resolve
- Homepage: https://gitlab.com/sebdeckers/babel-plugin-transform-import-scripts-resolve#README
- Issues: https://gitlab.com/sebdeckers/babel-plugin-transform-import-scripts-resolve/issues
- npm.io page: https://npm.io/package/babel-plugin-transform-import-scripts-resolve

## Dependencies (1)

- [relative-path-to-relative-url](https://npm.io/package/relative-path-to-relative-url.md) ^1.0.0

## Alternatives

- [@openai/codex-sdk](https://npm.io/package/@openai/codex-sdk.md) — 731.4K weekly downloads
- [babel-plugin-transform-react-jsx](https://npm.io/package/babel-plugin-transform-react-jsx.md) — 565.0K weekly downloads
- [babel-helper-remove-or-void](https://npm.io/package/babel-helper-remove-or-void.md) — 508.5K weekly downloads
- [@pnpm/store-controller-types](https://npm.io/package/@pnpm/store-controller-types.md) — 186.9K weekly downloads
- [react-native-signature-canvas](https://npm.io/package/react-native-signature-canvas.md) — 155.6K weekly downloads

## Recent versions

- 1.0.1 (latest) — 2016-12-19
- 1.0.0 — 2016-12-19

## README

# babel-plugin-transform-import-scripts-resolve

Map named dependencies to relative paths for `importScripts` calls in Service Worker scripts.

## Usage

### `.babelrc`

```json
{
  "plugins": [
    ["transform-import-resolve", {
      "sourceToDestination": {
        "/some/absolute/foo.js": "/some/absolute/bar.js"
      },
      "outputDirectory": "/public"
    }]
  ]
}
```

### In

```js
importScripts('./foo.js')
```

### Out

```js
importScripts('./bar.js')
```

## Options

### `sourceToDestination`

Type: `Function` or `Object` or `Map`

Maps the absolute path of a dependency to another path.

### `outputDirectory`

Output directory to which the mapped path will be made relative.

---
_Source: https://npm.io/package/babel-plugin-transform-import-scripts-resolve · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
