Security News
Node.js EOL Versions CVE Dubbed the "Worst CVE of the Year" by Security Experts
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
@types/surma__rollup-plugin-off-main-thread
Advanced tools
TypeScript definitions for @surma/rollup-plugin-off-main-thread
npm install --save @types/surma__rollup-plugin-off-main-thread
This package contains type definitions for @surma/rollup-plugin-off-main-thread (https://github.com/surma/rollup-plugin-off-main-thread).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/surma__rollup-plugin-off-main-thread.
import { Plugin, RenderedChunk } from "rollup";
interface OffMainThreadOptions {
/**
* A string containing the EJS template for the amd loader.
* If `undefined`, OMT will use `loader.ejs`.
*/
loader?: string;
/**
* Use `fetch()` + `eval()` to load dependencies instead of `<script>` tags
* and `importScripts()`. _This is not CSP compliant, but is required if you
* want to use dynamic imports in ServiceWorker_.
* @default false
*/
useEval?: boolean;
/**
* Function name to use instead of AMD’s `define`.
* @default 'define'
*/
amdFunctionName?: string;
/**
* A function that determines whether the loader code should be prepended to a
* certain chunk. Should return true if the load is supposed to be prepended.
*/
prependLoader?: (chunk: RenderedChunk, workerFiles: string[]) => boolean;
/**
* The scheme used when importing workers as a URL.
* @default 'omt'
*/
urlLoaderScheme?: string;
/**
* Silence the warning about ESM being badly supported in workers.
* @default false
*/
silenceESMWorkerWarning?: boolean;
}
/**
* Use Rollup with workers and ES6 modules _today_.
*/
declare function OMT(opts?: OffMainThreadOptions): Plugin;
export = OMT;
These definitions were written by Tiger Oakes.
FAQs
TypeScript definitions for @surma/rollup-plugin-off-main-thread
The npm package @types/surma__rollup-plugin-off-main-thread receives a total of 2,474 weekly downloads. As such, @types/surma__rollup-plugin-off-main-thread popularity was classified as popular.
We found that @types/surma__rollup-plugin-off-main-thread demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.