1.0.6 • Published 5 years ago

rollup-plugin-worker-inline v1.0.6

Weekly downloads
1
License
MIT
Repository
github
Last release
5 years ago

rollup-plugin-worker-inline

version license npm Downloads

A simple rollup plugin to create inline worker

Temporarily does not support packaging of importScripts, import and require modules.

Install

$ npm install rollup-plugin-worker-inline

Usage

In the rollup.config.js, or you can test the sample file ./sample/rollup.config.js

import workerInline from 'rollup-plugin-worker-inline';

export default {
    // ...
    plugins: [
        workerInline({
            // The worker file passes `@babel/preset-env` and `babel-preset-minify` presets processing by default.
            // Or you can customize the worker output yourself.
            transform: code => code,
        }),
    ],
    // ...
};

License

MIT © Harvey Zack

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago