fix(stage-pocket): temporarily inline isEnvTruthy in vite.config.ts
This commit is contained in:
@@ -180,7 +180,7 @@ watch([stream, () => vadLoaded.value], async ([s, loaded]) => {
|
||||
:background="selectedOption"
|
||||
:top-color="sampledColor"
|
||||
>
|
||||
<div flex="~ col" relative z-2 h-100dvh w-100vw of-hidden py-safe>
|
||||
<div flex="~ col" py-safe relative z-2 h-100dvh w-100vw of-hidden>
|
||||
<!-- header -->
|
||||
<div class="px-0 py-1 md:px-3 md:py-3" w-full gap-2>
|
||||
<Header class="hidden md:flex" />
|
||||
|
||||
@@ -18,12 +18,18 @@ import VueDevTools from 'vite-plugin-vue-devtools'
|
||||
import Layouts from 'vite-plugin-vue-layouts'
|
||||
import VueMacros from 'vue-macros/vite'
|
||||
|
||||
import { isEnvTruthy } from '@proj-airi/stage-shared'
|
||||
import { Download } from '@proj-airi/unplugin-fetch/vite'
|
||||
import { DownloadLive2DSDK } from '@proj-airi/unplugin-live2d-sdk/vite'
|
||||
import { templateCompilerOptions } from '@tresjs/core'
|
||||
import { defineConfig } from 'vite'
|
||||
|
||||
// import { isEnvTruthy } from '@proj-airi/stage-shared'
|
||||
function isEnvTruthy(value: string | undefined | null): boolean {
|
||||
if (value == null)
|
||||
return false
|
||||
return /^(?:1|true|t|yes|y|on)$/i.test(value.trim())
|
||||
}
|
||||
|
||||
const stageUIAssetsRoot = resolve(join(import.meta.dirname, '..', '..', 'packages', 'stage-ui', 'src', 'assets'))
|
||||
const sharedCacheDir = resolve(join(import.meta.dirname, '..', '..', '.cache'))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user