1.0.0-dev.15 • Published 3 years ago

worker-url-tmp v1.0.0-dev.15

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

WorkerUrl

example branch parameter npm version License

Tool to generate worker and woklet bundles with webpack v5.

  npm i --save-dev worker-url

webpack.config.js

const { WorkerUrlPlugin } = require('worker-url/plugin')

module.exports = {
  plugins: [
    new WorkerUrlPlugin()
  ]
}

index.js

const { WorkerUrl } = require('worker-url')

const url = new WorkerUrl(new URL('./worker.js', import.meta.url), {
	name: 'worker',
});

License

WorkerUrl is MIT licensed.

1.0.0-beta.23

3 years ago

1.0.0-beta.20

3 years ago

1.0.0-beta.19

3 years ago

1.0.0-beta.18

3 years ago

1.0.0-beta.17

3 years ago

1.0.0-dev.15

3 years ago