chore(webui): rename

This commit is contained in:
yiliang114 2026-01-14 23:27:56 +08:00
parent 1e2ef871d7
commit ec0586b135
25 changed files with 724 additions and 0 deletions

View file

@ -0,0 +1,47 @@
import typescript from '@rollup/plugin-typescript';
import { dts } from 'rollup-plugin-dts';
import pkg from './package.json' with { type: 'json' };
const name = pkg.name;
export default [
// Browser-friendly version
{
input: 'src/index.ts',
output: {
name,
file: 'dist/index.min.js',
format: 'iife',
globals: {
react: 'React',
'react-dom': 'ReactDOM',
},
},
external: ['react', 'react-dom'],
plugins: [
typescript({
tsconfig: './tsconfig.json',
}),
],
},
// ES module version
{
input: 'src/index.ts',
output: [
{ file: 'dist/index.esm.js', format: 'es' },
{ file: 'dist/index.cjs.js', format: 'cjs' },
],
external: ['react', 'react-dom'],
plugins: [
typescript({
tsconfig: './tsconfig.json',
}),
],
},
// Type declarations
{
input: 'dist/dts/src/index.d.ts',
output: [{ file: 'dist/index.d.ts', format: 'es' }],
plugins: [dts()],
},
];