This commit is contained in:
hsueh chiahao
2025-10-16 20:36:20 +08:00
parent b35bd159a8
commit bed00db98e
7 changed files with 80 additions and 9 deletions

View File

@@ -22,6 +22,7 @@ function createIIFEConfig(platform: 'desktop' | 'mobile'): UserConfig {
global: 'window',
},
build: {
target: 'es2022',
lib: {
entry: path.resolve(__dirname, `src/js/${platform}.ts`),
name: `${packageJson.name.replaceAll('-', '_')}_${platform}_iife`,