rollup-plugin-concurrent-top-level-await 0.4.0 → 0.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.mjs +1 -1
  2. package/package.json +1 -1
package/dist/index.mjs CHANGED
@@ -277,7 +277,7 @@ function concurrentTopLevelAwait(options = {}) {
277
277
  if (hasAwait) asyncTracker.setDependencies(id, []);
278
278
  let imports = (await Promise.all(importDeclarations.map(async (declaration) => {
279
279
  const importId = await resolveDeclarationSource(this, id, transformOptions?.attributes, declaration);
280
- if (!importId || !filter(importId.id)) return null;
280
+ if (!importId || importId.external || !filter(importId.id)) return null;
281
281
  return {
282
282
  declaration,
283
283
  id: importId.id
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rollup-plugin-concurrent-top-level-await",
3
- "version": "0.4.0",
3
+ "version": "0.4.1",
4
4
  "description": "Rollup (and Vite) plugin enabling concurrent execution of modules that contain top level await.",
5
5
  "keywords": [
6
6
  "rollup-plugin",