-
-
Notifications
You must be signed in to change notification settings - Fork 22
Switch from react
to preact
#285
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
a8a8f4a
Switch from `react` to `preact`
Archmonger 79a9dab
Merge remote-tracking branch 'upstream/main' into react-to-preact
Archmonger 78b2d78
attempt bumping preact and removing "jsx" from tsconfig
Archmonger 8fc2e97
add react to paths
Archmonger c59c688
Try using non-compat render function
Archmonger 9d63a8a
Avoid all functions from preact/compat
Archmonger 1f7efab
more tsconfig changes
Archmonger 2fef71a
fix browser page logging
Archmonger 6003a42
hatch fmt
Archmonger c2b6e37
use overrides to patch react to preact
Archmonger f320a44
add stack to error msg
Archmonger 33f3ee3
try different method of patching react
Archmonger ef34bfb
self review
Archmonger 0bea4c1
add changelog
Archmonger File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
Binary file not shown.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,16 +5,18 @@ | |
"check": "prettier --check . && eslint" | ||
}, | ||
"devDependencies": { | ||
"@types/react": "^18.2.48", | ||
"@types/react-dom": "^18.2.18", | ||
"eslint": "^9.13.0", | ||
"eslint-plugin-react": "^7.37.1", | ||
"prettier": "^3.3.3" | ||
"prettier": "^3.3.3", | ||
"bun-types": "^0.5.0" | ||
}, | ||
"dependencies": { | ||
"@pyscript/core": "^0.6", | ||
"@reactpy/client": "^0.3.2", | ||
"event-to-object": "^0.1.2", | ||
"morphdom": "^2.7.4" | ||
"morphdom": "^2.7.4", | ||
"preact": "^10.26.9", | ||
"react": "npm:@preact/[email protected]", | ||
"react-dom": "npm:@preact/[email protected]" | ||
} | ||
} |
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
{ | ||
"compilerOptions": { | ||
"allowImportingTsExtensions": true, | ||
"allowJs": true, | ||
"allowSyntheticDefaultImports": true, | ||
"declaration": true, | ||
"declarationMap": true, | ||
"esModuleInterop": true, | ||
"forceConsistentCasingInFileNames": true, | ||
"isolatedModules": true, | ||
"jsx": "react-jsx", | ||
"jsxImportSource": "preact", | ||
"lib": ["ESNext", "DOM", "DOM.Iterable"], | ||
"module": "Preserve", | ||
"moduleDetection": "force", | ||
"moduleResolution": "bundler", | ||
"noEmit": true, | ||
"noEmitOnError": true, | ||
"noUnusedLocals": true, | ||
"paths": { | ||
"react": ["./node_modules/preact/compat/"], | ||
"react-dom": ["./node_modules/preact/compat/"], | ||
"react-dom/*": ["./node_modules/preact/compat/*"], | ||
"react/jsx-runtime": ["./node_modules/preact/jsx-runtime"] | ||
}, | ||
"resolveJsonModule": true, | ||
"skipLibCheck": true, | ||
"sourceMap": true, | ||
"strict": true, | ||
"target": "ESNext", | ||
"verbatimModuleSyntax": true | ||
} | ||
} |
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
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.
Uh oh!
There was an error while loading. Please reload this page.