-
Install dependencies using pnpm install
-
Start the dev server using pnpm run dev
-
Go through the other scripts in package.json
lazyloading Example
// vite.config.ts
export default defineConfig({
plugins: [
react({
jsxImportSource: '@emotion/react',
babel: {
plugins: ['@emotion/babel-plugin'],
compact: false,
},
}),
],
// ...other
})
// tsconfig.json
{
"compilerOptions": {
"jsxImportSource": "@emotion/react"
}
}
If you need to configure eslint
// .eslintrc
{
"rules": {
"react/no-unknown-property": ["error", { "ignore": ["css"] }]
}
}