Registry /
web-framework / rollup-plugin-concurrent-top-level-await
Install & Compatibility
Where this runs
tested against v? · npm install
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
muslnode 18–223 runs
build_error
glibcnode 18–223 runs
build_error
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
default
✓ import concurrentTopLevelAwait from 'rollup-plugin-concurrent-top-level-await'
✗ const { concurrentTopLevelAwait } = require('rollup-plugin-concurrent-top-level-await')
Default export is a function; named export does not exist. CJS require() returns the default export as module.exports.
default (CJS)
✓ const concurrentTopLevelAwait = require('rollup-plugin-concurrent-top-level-await')
✗ const { default: concurrentTopLevelAwait } = require('rollup-plugin-concurrent-top-level-await')
In CommonJS, the plugin is the default export directly; no .default needed.
Plugin type (TypeScript only)
✓ import type { Plugin } from 'rollup'
✗ import { Plugin } from 'rollup-plugin-concurrent-top-level-await'
The package does not export a Plugin type; use Rollup's or Vite's own type.
Options type
✓ import type { ConcurrentTopLevelAwaitOptions } from 'rollup-plugin-concurrent-top-level-await'
Available from v0.4.0+. Not needed for JavaScript users.
Basic Rollup config using the plugin with include/exclude filters, source maps, and custom variable prefix.
// rollup.config.js
import concurrentTopLevelAwait from 'rollup-plugin-concurrent-top-level-await';
export default {
input: 'src/index.js',
output: {
dir: 'dist',
format: 'esm'
},
plugins: [
concurrentTopLevelAwait({
include: '**/*.js',
exclude: 'node_modules/**',
sourceMap: true,
generatedVariablePrefix: '__tla'
})
]
};
// Install: npm install --save-dev rollup rollup-plugin-concurrent-top-level-await
Errors
Common errors & fixes
Error: Cannot find module 'rollup-plugin-concurrent-top-level-await'
Package not installed or not in node_modules.
fixRun `npm install --save-dev rollup-plugin-concurrent-top-level-await`
TypeError: concurrentTopLevelAwait is not a function
Using named import `{ concurrentTopLevelAwait }` instead of default import.
fixChange to `import concurrentTopLevelAwait from 'rollup-plugin-concurrent-top-level-await'`
Error: This plugin is not compatible with version 8.x of Vite. Check peer dependencies.
Vite version >=8.0.0 is not supported (plugin requires <8.0.0).
fixDowngrade Vite to 7.x or use rolldown-plugin-concurrent-top-level-await instead.
Error: (plugin concurrent-top-level-await) Could not resolve source map
Source map generation failed for a transformed file, often due to incorrect include/exclude patterns.
fixEnsure `include` covers all ancestor modules and that source maps are enabled (`sourceMap: true`).
Audit
Dependencies
rolluprequiredPeer dependency for Rollup plugin API (^4.0.0 required)
viteoptionalPeer dependency for Vite compatibility (>=5.0.0 <8.0.0)