fix(stage-tamagotchi,stage-shared,stage-ui): unify electron-renderer globals and fix env checks in providers (#668)

This commit is contained in:
Makito
2025-10-20 15:09:45 +08:00
committed by GitHub
parent 18c1bdb0ef
commit bcc262a50c
16 changed files with 86 additions and 54 deletions
@@ -74,13 +74,11 @@ export default defineConfig({
plugins: [
{
name: 'proj-airi:define-runtime-environment',
config(ctx) {
if (ctx.mode === 'production') {
return {
define: {
'import.meta.env.RUNTIME_ENVIRONMENT': '\'electron\'',
},
}
config() {
return {
define: {
'import.meta.env.RUNTIME_ENVIRONMENT': '\'electron\'',
},
}
},
},