2022-03-21 게시 됨2022-05-15 업데이트 됨react몇 초안에 읽기 (약 62 단어)vite react-ts에서 emotion css prop 쓰기 vite.config.ts1234567891011121314import { defineConfig } from 'vite';import react from '@vitejs/plugin-react';// https://vitejs.dev/config/export default defineConfig({ plugins: [ react({ jsxImportSource: '@emotion/react', babel: { plugins: ['@emotion/babel-plugin'], }, }), ],}); tsconfig.json123456{ "compilerOptions": { // ... "jsxImportSource": "@emotion/react" }} 참고 https://dev.to/glocore/configure-emotion-with-your-vite-react-project-7jl