Skip to content

[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

Conversation

VanessaPC
Copy link
Contributor

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

@VanessaPC VanessaPC self-assigned this Apr 9, 2024
@VanessaPC VanessaPC force-pushed the feat/lw-10152-setup-preact-webpack branch from 8423658 to 1b218d9 Compare April 9, 2024 12:09
@VanessaPC VanessaPC changed the title Feat/lw 10152 setup preact webpack [LW-10152] Setup preact webpack Apr 9, 2024
@VanessaPC VanessaPC force-pushed the feat/lw-10152-setup-preact-webpack branch from 6f6eefa to 6f5b46a Compare April 9, 2024 13:22
@VanessaPC VanessaPC marked this pull request as draft April 9, 2024 13:23
@VanessaPC VanessaPC force-pushed the feat/lw-10152-setup-preact-webpack branch from 6f5b46a to 4c00a6f Compare April 9, 2024 14:22
@VanessaPC VanessaPC marked this pull request as ready for review April 9, 2024 14:23
@VanessaPC VanessaPC force-pushed the feat/lw-10152-setup-preact-webpack branch 4 times, most recently from e353038 to aa1e0ed Compare April 10, 2024 08:59
@VanessaPC VanessaPC force-pushed the feat/lw-10152-setup-preact-webpack branch from aa1e0ed to 8bfc274 Compare April 10, 2024 09:02
@@ -0,0 +1,53 @@
{
"name": "@cardano-sdk/dapp-connector-preact",
Copy link
Member

@DominikGuzei DominikGuzei Apr 10, 2024

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;
Copy link
Member

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',
Copy link
Member

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 🙏

Copy link
Member

@DominikGuzei DominikGuzei left a 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);
Copy link
Contributor

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.

@VanessaPC VanessaPC closed this Apr 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants