-
Notifications
You must be signed in to change notification settings - Fork 63
[LW-10152] Setup preact webpack #1204
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
[LW-10152] Setup preact webpack #1204
Conversation
8423658
to
1b218d9
Compare
6f6eefa
to
6f5b46a
Compare
6f5b46a
to
4c00a6f
Compare
e353038
to
aa1e0ed
Compare
aa1e0ed
to
8bfc274
Compare
@@ -0,0 +1,53 @@ | |||
{ | |||
"name": "@cardano-sdk/dapp-connector-preact", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it seems like there are 4 (or even 8?) spaces intentation here, lets change it to our default of 2?
|
||
|
||
.home { | ||
margin: 0 auto; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lets change it to 2 spaces intentation
test: /\.(js|ts|tsx)$/, | ||
use: [ | ||
{ | ||
loader: 'babel-loader', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's replace Babel with https://swc.rs/ like we did in Lace 🙏
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work 🎉 I left some feedback
import './logs.css'; | ||
|
||
export const Logs = () => { | ||
const [storeState, setStoreState] = useState<Store>(connectorStore.initialState); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would make this into a hook to be used in other places.
Context
Set up Preact and match the previous functionality in the POC.
Proposed Solution
Set up Preact and substitute Vite with Webpack due to issues with
libsodium-wrapper
package.Important Changes Introduced