UNPKG

easy-form-handler

Version:

A powerful, lightweight React form handling library with built-in validation, customizable styling, and intuitive components.

34 lines (33 loc) 923 B
import { defineConfig } from 'rollup'; import typescript from '@rollup/plugin-typescript'; import postcss from 'rollup-plugin-postcss'; import url from '@rollup/plugin-url'; export default defineConfig({ input: 'src/index.ts', output: [ { file: 'dist/index.js', format: 'cjs', }, { file: 'dist/index.mjs', format: 'es', }, ], external: ['react', 'react-dom'], plugins: [ typescript({ tsconfig: './tsconfig.json', // Explicitly specify the tsconfig file }), postcss({ modules: true, }), url({ include: ['**/*.svg', '**/*.png', '**/*.jpg', '**/*.gif'], limit: 1048576, emitFiles: true, fileName: '[name][hash][extname]', destDir: 'dist/assets', }), ], });