This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

rollup-plugin-worker-inline

1.0.7 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i rollup-plugin-worker-inline

Weekly Downloads

17

Version

1.0.7

License

MIT

Unpacked Size

5.83 kB

Total Files

9

Last publish

Collaborators

  • zhw2590582