Skip to content

Commit 81f059b

Browse files
committed
solid v2 upgrade
1 parent 391138e commit 81f059b

5 files changed

Lines changed: 158 additions & 67 deletions

File tree

babel.config.cjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ module.exports = {
99
[
1010
"babel-plugin-jsx-dom-expressions",
1111
{
12-
moduleName: "solid-js/web",
12+
moduleName: "@solidjs/web",
1313
contextToCustomElements: true,
1414
wrapConditionals: true,
15-
builtIns: ["For", "Show", "Switch", "Match", "Suspense", "SuspenseList", "Portal"]
15+
builtIns: ["For", "Show", "Switch", "Match", "Loading", "Errored", "Portal"]
1616
}
1717
]
1818
]

package.json

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@
3535
"release": "pnpm build && changeset publish"
3636
},
3737
"peerDependencies": {
38-
"solid-js": ">=1.8.4"
38+
"solid-js": "2.0.0-beta.0",
39+
"@solidjs/web": "2.0.0-beta.0"
3940
},
4041
"devDependencies": {
4142
"@babel/cli": "^7.27.0",
@@ -44,15 +45,16 @@
4445
"@babel/preset-typescript": "7.27.0",
4546
"@changesets/cli": "^2.28.1",
4647
"@rollup/plugin-babel": "^6.0.4",
48+
"@solidjs/web": "2.0.0-beta.0",
4749
"@testing-library/jest-dom": "^6.6.3",
4850
"@types/jest": "^29.5.14",
4951
"@vitest/browser": "^3.1.1",
50-
"babel-preset-solid": "^1.9.5",
52+
"babel-preset-solid": "2.0.0-beta.0",
5153
"jsdom": "^26.0.0",
5254
"rimraf": "^6.0.1",
53-
"solid-js": "^1.9.5",
55+
"solid-js": "2.0.0-beta.0",
5456
"typescript": "5.8.3",
55-
"vite-plugin-solid": "^2.11.6",
57+
"vite-plugin-solid": "^3.0.0-next.0",
5658
"vitest": "^3.1.1"
5759
}
5860
}

0 commit comments

Comments
 (0)