mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-05-01 05:00:46 +00:00
chore(webui): rename
This commit is contained in:
parent
1e2ef871d7
commit
ec0586b135
25 changed files with 724 additions and 0 deletions
47
packages/webui/rollup.config.js
Normal file
47
packages/webui/rollup.config.js
Normal 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()],
|
||||
},
|
||||
];
|
||||
Loading…
Add table
Add a link
Reference in a new issue