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
| import { styled } from 'styled-components'; | |
| import { hoverEffect } from './hover-effect.ts'; | |
| import { Image } from './Image.tsx'; | |
| const Wrapper = styled.div` | |
| display: flex; | |
| width: 600px; | |
| margin: 20px auto 20px auto; | |
| `; |
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
| import { dirname, resolve } from 'node:path'; | |
| import ts from 'typescript'; | |
| /** @typedef {Record<'compilerOptions', ts.server.protocol.CompilerOptions>} CompilerOptions */ | |
| const parsedConfig = | |
| /** @type {Record<'raw', CompilerOptions>} */ | |
| ( | |
| ts.getParsedCommandLineOfConfigFile('tsconfig.json', undefined, { | |
| ...ts.sys, |
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
| import { styleText } from 'node:util'; | |
| /** @typedef {Extract<keyof typeof console, 'error' | 'info' | 'log' | 'warn'>} LogLevel */ | |
| /** @typedef {Parameters<typeof styleText>[0]} Format */ | |
| /** @type {Record<LogLevel, Format>} */ | |
| const LOG_COLORS = { | |
| error: 'red', | |
| info: 'cyan', | |
| log: 'reset', |
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
| import { resolve } from 'node:path'; | |
| import { tsLoader } from './loaders.mjs'; | |
| /** @type {import('webpack').Configuration} */ | |
| export default { | |
| resolve: { | |
| extensions: ['.ts', '.tsx', '...'], | |
| }, | |
| module: { | |
| rules: [ |