Skip to content

Instantly share code, notes, and snippets.

View arielff3's full-sized avatar
🏅
React Developer

Ariel Franco Ferreira arielff3

🏅
React Developer
View GitHub Profile
{
"name": "design-system-vite",
"private": false,
"version": "0.0.0",
"type": "module",
"license": "MIT",
"main": "./dist/design-system-article.umd.js",
"module": "./dist/design-system-article.es.js",
"types": "./dist/index.d.ts",
"files": ["dist"],
{
"compilerOptions": {
"composite": true,
"module": "ESNext",
"moduleResolution": "Node",
"allowSyntheticDefaultImports": true,
"resolveJsonModule": true
},
"include": ["vite.config.ts", "package.json"]
}
{
"compilerOptions": {
"target": "ESNext",
"lib": ["DOM", "DOM.Iterable", "ESNext"],
"allowJs": false,
"skipLibCheck": true,
"esModuleInterop": false,
"allowSyntheticDefaultImports": true,
"strict": true,
"forceConsistentCasingInFileNames": true,
import { resolve } from 'node:path'
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
import tsConfigPaths from 'vite-tsconfig-paths'
import EsLint from 'vite-plugin-linter'
const { EsLinter, linterPlugin } = EsLint
import dts from 'vite-plugin-dts'
import * as packageJson from './package.json'
// https://vitejs.dev/config/
export type { HelloTextProps } from './HelloText'
export { HelloText } from './HelloText'
import './style.css'
.color-blue {
color: rgb(54, 0, 201);
}
import './style.css'
export type HelloTextProps = {
text: string,
}
export const HelloText = ({ text }: HelloTextProps) => {
return <h1 className="color-blue">Hello {text}</h1>
}