{"library":"rollup-plugin-concurrent-top-level-await","title":"rollup-plugin-concurrent-top-level-await","description":"Rollup and Vite plugin (v0.4.1) that restores concurrent execution of modules with top-level await (TLA), which Rollup/Vite otherwise serialize. Provides near-perfect evaluation order matching V8 (99%+ on tla-fuzzer) by transforming both TLA-containing modules and their ancestor modules up to the lowest common ancestor. Ships TypeScript types, supports include/exclude filters, source maps, and configurable variable prefix. Requires Rollup ^4.0.0 or Vite >=5.0.0 <8.0.0. Not compatible with Rolldown or Vite >=8. Does not polyfill TLA—runtime support needed.","language":"javascript","status":"active","last_verified":"Mon Apr 27","install":{"commands":["npm install rollup-plugin-concurrent-top-level-await"],"cli":null},"imports":["import concurrentTopLevelAwait from 'rollup-plugin-concurrent-top-level-await'","const concurrentTopLevelAwait = require('rollup-plugin-concurrent-top-level-await')","import type { Plugin } from 'rollup'","import type { ConcurrentTopLevelAwaitOptions } from 'rollup-plugin-concurrent-top-level-await'"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"// rollup.config.js\nimport concurrentTopLevelAwait from 'rollup-plugin-concurrent-top-level-await';\n\nexport default {\n  input: 'src/index.js',\n  output: {\n    dir: 'dist',\n    format: 'esm'\n  },\n  plugins: [\n    concurrentTopLevelAwait({\n      include: '**/*.js',\n      exclude: 'node_modules/**',\n      sourceMap: true,\n      generatedVariablePrefix: '__tla'\n    })\n  ]\n};\n\n// Install: npm install --save-dev rollup rollup-plugin-concurrent-top-level-await","lang":"typescript","description":"Basic Rollup config using the plugin with include/exclude filters, source maps, and custom variable prefix.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}