Skip to content

Commit a659f56

Browse files
Jungzlso1ve
andauthored
feat!: sync with upstream, support rolldown (#122)
Co-authored-by: so1ve <i@mk1.io>
1 parent 8733079 commit a659f56

39 files changed

+7550
-6395
lines changed

.eslintrc

Lines changed: 0 additions & 3 deletions
This file was deleted.

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* text=auto eol=lf

.github/workflows/autofix-ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
- name: Setup node
2222
uses: actions/setup-node@v3
2323
with:
24-
node-version: 18.x
24+
node-version: 24.x
2525
cache: pnpm
2626

2727
- name: Setup

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
- name: Setup node
2222
uses: actions/setup-node@v3
2323
with:
24-
node-version: 18.x
24+
node-version: 24.x
2525
cache: pnpm
2626

2727
- name: Setup
@@ -44,7 +44,7 @@ jobs:
4444
- name: Setup node
4545
uses: actions/setup-node@v3
4646
with:
47-
node-version: 18.x
47+
node-version: 24.x
4848
cache: pnpm
4949

5050
- name: Setup
@@ -61,7 +61,7 @@ jobs:
6161

6262
strategy:
6363
matrix:
64-
node: [16.x, 18.x]
64+
node: [22.x, 24.x]
6565
os: [ubuntu-latest, windows-latest, macos-latest]
6666
fail-fast: false
6767

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818

1919
- uses: actions/setup-node@v3
2020
with:
21-
node-version: 18.x
21+
node-version: 24.x
2222

2323
- run: npx changelogithub
2424
env:

.vscode/extensions.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"recommendations": ["dbaeumer.vscode-eslint"]
2+
"recommendations": ["dbaeumer.vscode-eslint"]
33
}

.vscode/settings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"typescript.tsdk": "node_modules/typescript/lib"
2+
"typescript.tsdk": "node_modules/typescript/lib"
33
}

README.md

Lines changed: 46 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@ $ pnpm add -D unplugin-solid
2020
import Solid from "unplugin-solid/vite";
2121

2222
export default defineConfig({
23-
plugins: [
24-
Solid({
25-
/* options */
26-
}),
27-
],
23+
plugins: [
24+
Solid({
25+
/* options */
26+
}),
27+
],
2828
});
2929
```
3030

@@ -38,30 +38,48 @@ export default defineConfig({
3838
import Solid from "unplugin-solid/rollup";
3939

4040
export default {
41-
plugins: [
42-
Solid({
43-
/* options */
44-
}),
45-
// other plugins
46-
],
41+
plugins: [
42+
Solid({
43+
/* options */
44+
}),
45+
// other plugins
46+
],
4747
};
4848
```
4949

5050
<br></details>
5151

52+
<details>
53+
<summary>Rolldown</summary><br>
54+
55+
```ts
56+
// rolldown.config.js
57+
import Solid from "unplugin-solid/rolldown";
58+
59+
export default {
60+
plugins: [
61+
Solid({
62+
/* options */
63+
}),
64+
// other plugins
65+
],
66+
};
67+
```
68+
69+
<br></details>
5270

5371
<details>
5472
<summary>Webpack</summary><br>
5573

5674
```ts
5775
// webpack.config.js
5876
module.exports = {
59-
/* ... */
60-
plugins: [
61-
require("unplugin-solid/webpack")({
62-
/* options */
63-
}),
64-
],
77+
/* ... */
78+
plugins: [
79+
require("unplugin-solid/webpack")({
80+
/* options */
81+
}),
82+
],
6583
};
6684
```
6785

@@ -75,18 +93,17 @@ module.exports = {
7593
import { build } from "esbuild";
7694

7795
build({
78-
/* ... */
79-
plugins: [
80-
require("unplugin-solid/esbuild")({
81-
/* options */
82-
}),
83-
],
96+
/* ... */
97+
plugins: [
98+
require("unplugin-solid/esbuild")({
99+
/* options */
100+
}),
101+
],
84102
});
85103
```
86104

87105
<br></details>
88106

89-
90107
<details>
91108
<summary>Astro</summary><br>
92109

@@ -95,11 +112,11 @@ build({
95112
import Solid from "unplugin-solid/astro";
96113

97114
export default defineConfig({
98-
integrations: [
99-
Solid({
100-
/* options */
101-
}),
102-
],
115+
integrations: [
116+
Solid({
117+
/* options */
118+
}),
119+
],
103120
});
104121
```
105122

build.config.ts

Lines changed: 0 additions & 14 deletions
This file was deleted.

eslint.config.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import { so1ve } from "@so1ve/eslint-config";
2+
3+
export default so1ve({
4+
ignores: ["**/fixtures/**"],
5+
});

0 commit comments

Comments
 (0)