fix(stage-tamagotchi,stage-shared,stage-ui): unify electron-renderer globals and fix env checks in providers (#668)
This commit is contained in:
@@ -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\'',
|
||||
},
|
||||
}
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user