rolldown-plugin-concurrent-top-level-await 0.3.1 → 0.3.3

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/README.md +2 -28
  2. package/package.json +2 -1
package/README.md CHANGED
@@ -1,5 +1,5 @@
1
1
  > [!Warning]
2
- > This plugin is currently in development. For more information, see [this issue](https://github.com/zOadT/concurrent-top-level-await-plugins/issues/35).
2
+ > This plugin uses Rolldown-specific APIs and is therefore not compatible with Rollup or Vite <= 7. For Rollup compatibility use [rollup-plugin-concurrent-top-level-await](https://www.npmjs.com/package/rollup-plugin-concurrent-top-level-await).
3
3
 
4
4
  # rolldown-plugin-concurrent-top-level-await
5
5
 
@@ -56,33 +56,7 @@ The plugin needs to handle not only modules that directly contain a top-level `a
56
56
 
57
57
  Consider the following module structure as an example:
58
58
 
59
- ```mermaid
60
- flowchart LR
61
- app[app.js]
62
- moduleA[moduleA.js]
63
- moduleB[moduleB.js]
64
- moduleC[moduleC.js]
65
- tla1[tla1.js]
66
- tla2[tla2.js]
67
- tla3[tla3.js]
68
- other[other.js]
69
-
70
- app --> moduleA
71
- moduleA --> moduleB
72
- moduleA --> moduleC
73
- moduleB --> tla1
74
- moduleC --> tla2
75
- moduleC --> tla3
76
- app --> other
77
-
78
- classDef tla fill:#ffe6e6,stroke:#ff0000,color:#660000
79
- classDef ancestor fill:#fff4cc,stroke:#ffcc00,color:#663300
80
- classDef unaffected fill:#e6ffe6,stroke:#00cc00,color:#006600
81
-
82
- class tla1,tla2,tla3 tla
83
- class moduleA,moduleB,moduleC ancestor
84
- class app,other unaffected
85
- ```
59
+ ![diagram](./images/README-1.svg)
86
60
 
87
61
  If the red modules contain top level awaits, these and their yellow ancestors should be included in the plugin's `include` option.
88
62
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rolldown-plugin-concurrent-top-level-await",
3
- "version": "0.3.1",
3
+ "version": "0.3.3",
4
4
  "description": "Rolldown (and Vite) plugin enabling concurrent execution of modules that contain top level await.",
5
5
  "keywords": [
6
6
  "rolldown-plugin",
@@ -52,6 +52,7 @@
52
52
  }
53
53
  },
54
54
  "devDependencies": {
55
+ "@mermaid-js/mermaid-cli": "^11.16.0",
55
56
  "@oxc-project/types": "^0.122.0",
56
57
  "@types/estree": "^1.0.8",
57
58
  "prettier": "3.7.4",