esbuild-plugin-inline-worker
Advanced tools
Comparing version 0.1.0 to 0.1.1
{ | ||
"name": "esbuild-plugin-inline-worker", | ||
"description": "Esbuild loader for inline Web Workers", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"repository": { | ||
@@ -6,0 +6,0 @@ "type": "git", |
# esbuild-plugin-inline-worker | ||
This is a plugin for [esbuild](https://esbuild.github.io) which allows you to import `.worker.js` files to get the constructor for a Web Worker. | ||
This is a plugin for [esbuild](https://esbuild.github.io) which allows you to import `.worker.js` files to get the constructor for a Web Worker, similar to [worker-loader](https://github.com/webpack-contrib/worker-loader) for Webpack. | ||
@@ -28,3 +28,3 @@ ```sh | ||
The inlined worker code will be created with a separate call to esbuild. That means your worker code can import libraries and use TypeScript or JSX! | ||
Possible file extensions for the worker are: `.worker.js`, `.worker.ts`, `.worker.jsx`, `.worker.tsx`. | ||
Supported file extensions for the worker are `.worker.js`, `.worker.ts`, `.worker.jsx`, `.worker.tsx`. | ||
@@ -43,3 +43,3 @@ ## Usage | ||
## Customization | ||
## Build configuration | ||
@@ -46,0 +46,0 @@ Optionally, you can pass a configuration object which has the same interface as esbuild's [build API](https://esbuild.github.io/api/#build-api), which determines how the worker code is bundled: |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
6143