npm.io
1.0.1 • Published 9 months ago

@pixi/webworker-plugins

Licence
MIT
Version
1.0.1
Deps
0
Size
26 kB
Vulns
0
Weekly
0
Stars
2

@pixi/webworker-plugins

npm version

Plugins for Web Workers.

import FooWorker from 'worker:./foo.worker.ts';

Install

npm install @pixi/webworker-plugins --save-dev

@pixi/webworker-plugins/jest-transform

Jest transform for Web Workers.

Usage

Add the following code to your jest.config.js:

module.exports = {
    transform: {
        '\\.worker.ts

@pixi/webworker-plugins/rollup-plugin

Rollup plugin for Web Workers.

Usage

Add the following code to your rollup.config.mjs:

import webworker from '@pixi/webworker-plugins/rollup-plugin';

export default {
    plugins: [
        webworker(),
    ],
    // ...
};
: '@pixi/webworker-plugins/lib/jest-transform', }, moduleNameMapper: { '^worker:(.*)

__INLINE_CODE_1__

Rollup plugin for Web Workers.

Usage

Add the following code to your rollup.config.mjs:

__CODE_BLOCK_3__
: '$1', }, // ... };

__INLINE_CODE_1__

Rollup plugin for Web Workers.

Usage

Add the following code to your rollup.config.mjs:

__CODE_BLOCK_3__

Keywords