{"library":"rollup-plugin-tla","title":"rollup-plugin-tla","description":"A Rollup plugin that enables top-level await (TLA) support for IIFE and UMD output formats, which Rollup does not natively support. Version 0.0.2 adds TypeScript declarations and supports Node.js >=14.18. It works by transforming the output to use a dynamic import or wrapper to handle TLA. Differentiators: lightweight, no additional runtime dependencies, and specifically targets IIFE/UMD where Rollup's own TLA handling is absent.","language":"javascript","status":"active","last_verified":"Mon Apr 27","install":{"commands":["npm install rollup-plugin-tla"],"cli":null},"imports":["import tla from 'rollup-plugin-tla'","import tla from 'rollup-plugin-tla'","import type { Plugin } from 'rollup';\nimport tla from 'rollup-plugin-tla';\nconst plugin: Plugin = tla();"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import tla from 'rollup-plugin-tla';\n\nexport default {\n  input: 'src/index.js',\n  output: {\n    format: 'iife',\n    file: 'dist/bundle.js'\n  },\n  plugins: [\n    tla()\n  ]\n};","lang":"typescript","description":"Shows how to add top-level await support for IIFE output format using rollup-plugin-tla.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}