Repository navigation
feat(solid): update Solid starter to Solid 2.0 - #24
Merged
Merged
Conversation
- solid-js, @solidjs/universal and @nativescript-community/solid-js ^2.0.0 - @solidjs/babel-plugin replaces babel-preset-solid; drop solid-refresh
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Moves the Solid starter behind https://nativescript.new/solid to Solid 2.0.
Changes
apps/nativescript-starter-solid/package.jsononly. The starter's source already works on Solid 2 unchanged.solid-js^1.8.16→^2.0.0@nativescript-community/solid-js^0.0.6→^2.0.0(v2.0.0)@solidjs/universal^2.0.0. Solid 2 moved the universal renderer out ofsolid-js/universal.@solidjs/babel-plugin^2.0.0replacesbabel-preset-solid. The community package's webpack config compiles with it.solid-refresh, which has no Solid 2 release@nativescript/corestays on~8.9.0, because Preview doesn't support core 9 yet (see #23).Once merged,
extract-templates.ymlupdates thesolidbranch that StackBlitz forks.Verification
Fresh
npm installofapps/nativescript-starter-solid, which resolvessolid-js2.0.0 and@nativescript/core8.9.9.npx nativescript-webpack buildnpx nativescript-webpack build --env productionRan on an iOS 26.5 simulator with the 8.9 iOS runtime. The app renders, and incrementing the counter updates both the interpolated label and the
Componentchild (0 → 2).Not tested inside StackBlitz/Preview itself. On an iOS 27 simulator, any core 8.9 app aborts at launch because it doesn't adopt the UIScene lifecycle; that's unrelated to this change.