Skip to content

Commit

Permalink
refactor: split code into main and renderer modules, adopt TS for mai…
Browse files Browse the repository at this point in the history
…n, and improve webpack process for bundling

Signed-off-by: Adam Setch <[email protected]>
  • Loading branch information
setchy committed Sep 30, 2024
1 parent 877635e commit 4fb5405
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 12 deletions.
2 changes: 1 addition & 1 deletion config/webpack.config.renderer.base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ const configuration: webpack.Configuration = {
'dist',
'svg',
),
to: 'twemoji',
to: 'assets/twemoji',
},
],
}),
Expand Down
7 changes: 6 additions & 1 deletion src/renderer/components/EmojiText.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,12 @@ export const EmojiText: FC<IEmojiText> = ({ text }) => {
_options: TwemojiOptions,
_variant: string,
) => {
return path.join(getDirectoryPath(), 'twemoji', `${icon}.svg`);
return path.join(
getDirectoryPath(),
'assets',
'twemoji',
`${icon}.svg`,
);
},
});
}
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/renderer/components/__snapshots__/AllRead.test.tsx.snap

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/renderer/components/__snapshots__/EmojiText.test.tsx.snap

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/renderer/components/__snapshots__/Oops.test.tsx.snap

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 4fb5405

Please sign in to comment.