feat: 系统终端

This commit is contained in:
bietiaop
2025-02-01 20:35:01 +08:00
parent 5120786708
commit 4157746478
15 changed files with 349 additions and 259 deletions

View File

@@ -4,7 +4,16 @@ import { resolve } from 'path';
import nodeResolve from '@rollup/plugin-node-resolve';
import { builtinModules } from 'module';
//依赖排除
const external = ['silk-wasm', 'ws', 'express', 'qrcode-terminal', 'piscina', '@ffmpeg.wasm/core-mt', "@ffmpeg.wasm/main"];
const external = [
'silk-wasm',
'ws',
'express',
'qrcode-terminal',
'piscina',
'@ffmpeg.wasm/core-mt',
'@ffmpeg.wasm/main',
'node-pty',
];
const nodeModules = [...builtinModules, builtinModules.map((m) => `node:${m}`)].flat();
let startScripts: string[] | undefined = undefined;
@@ -56,7 +65,6 @@ const FrameworkBaseConfigPlugin: PluginOption[] = [
nodeResolve(),
];
const ShellBaseConfigPlugin: PluginOption[] = [
cp({
targets: [
@@ -101,7 +109,6 @@ const UniversalBaseConfig = () =>
},
});
const ShellBaseConfig = () =>
defineConfig({
resolve: {