@kirana-style/rolldown 0.2.3 → 0.2.4
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.
- package/CHANGELOG.md +13 -0
- package/package.json +3 -3
- package/src/index.d.ts +5 -1
- package/src/index.js +2 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.2.4](https://github.com/kirana-style/kirana/compare/v0.2.3...v0.2.4) (2026-10-19)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Performance
|
|
7
|
+
|
|
8
|
+
* compile each module once in a one-shot build ([#59](https://github.com/kirana-style/kirana/issues/59)) ([df6d014](https://github.com/kirana-style/kirana/commit/df6d014fae6cd5c85a032056b1322db09427aed3))
|
|
9
|
+
* compile modules in parallel in vite and rolldown builds ([#60](https://github.com/kirana-style/kirana/issues/60)) ([e2eb29a](https://github.com/kirana-style/kirana/commit/e2eb29a667bd563cee2e2cf20f51a5e1d46f8c0d))
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
### Documentation
|
|
13
|
+
|
|
14
|
+
* take the benchmarks of kirana 0.2.3 from kirana-lab ([#57](https://github.com/kirana-style/kirana/issues/57)) ([ab95357](https://github.com/kirana-style/kirana/commit/ab95357157fda97aad33007277c542118c89f5a9))
|
|
15
|
+
|
|
3
16
|
## [0.2.3](https://github.com/kirana-style/kirana/compare/v0.2.2...v0.2.3) (2026-10-19)
|
|
4
17
|
|
|
5
18
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kirana-style/rolldown",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.4",
|
|
4
4
|
"description": "Kirana for Rolldown: compiles modules and emits the stylesheet.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "The Kirana authors",
|
|
@@ -25,8 +25,8 @@
|
|
|
25
25
|
"./package.json": "./package.json"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@kirana-style/compiler": "0.2.
|
|
29
|
-
"@kirana-style/core": "0.2.
|
|
28
|
+
"@kirana-style/compiler": "0.2.4",
|
|
29
|
+
"@kirana-style/core": "0.2.4"
|
|
30
30
|
},
|
|
31
31
|
"peerDependencies": {
|
|
32
32
|
"rolldown": "^1.2.12"
|
package/src/index.d.ts
CHANGED
|
@@ -49,7 +49,11 @@ export type Host = {
|
|
|
49
49
|
export declare function createKirana(options?: KiranaRolldownOptions, host?: Host): {
|
|
50
50
|
plugin: {
|
|
51
51
|
name: string;
|
|
52
|
-
buildStart(
|
|
52
|
+
buildStart(this: {
|
|
53
|
+
meta: {
|
|
54
|
+
watchMode: boolean;
|
|
55
|
+
};
|
|
56
|
+
}): Promise<void>;
|
|
53
57
|
renderChunk(code: string, chunk: {
|
|
54
58
|
fileName: string;
|
|
55
59
|
}): Promise<{
|
package/src/index.js
CHANGED
|
@@ -45,6 +45,7 @@ function createKirana(options = {}, host = {}) {
|
|
|
45
45
|
name: "kirana",
|
|
46
46
|
async buildStart() {
|
|
47
47
|
const compiler = await session();
|
|
48
|
+
if (!development() && !this.meta.watchMode) compiler.reuseTransforms();
|
|
48
49
|
if (dense()) {
|
|
49
50
|
if (compiler.classModules.length > 0) throw new Error("kirana: `names: \"dense\"` cannot be used with a class map (`classes`): server templates read hashed names");
|
|
50
51
|
compiler.markDense();
|
|
@@ -91,7 +92,7 @@ function createKirana(options = {}, host = {}) {
|
|
|
91
92
|
const file = cleanId(id);
|
|
92
93
|
const compiler = await session();
|
|
93
94
|
if (!compiler.compiles(file)) return null;
|
|
94
|
-
const result = compiler.transform(file, code);
|
|
95
|
+
const result = development() ? compiler.transform(file, code) : await compiler.transformAsync(file, code);
|
|
95
96
|
for (const dependency of result.dependencies) this.addWatchFile(dependency);
|
|
96
97
|
reporter.module(this, file, code, result.diagnostics);
|
|
97
98
|
if (result.cssChanged) host.cssChanged?.();
|