build: declare PDA i18n feature flags

This commit is contained in:
2026-09-03 20:31:10 +08:00
parent f2e4f99f26
commit e8f5d053ee
2 changed files with 10 additions and 0 deletions
+4
View File
@@ -19,6 +19,10 @@ test('overseas PDA is an independent Vue 3 app with separate packaging identity'
assert.match(vite, /replace\(\/\^\\\/overseas-api\//)
assert.match(vite, /removeHeader\('origin'\)/)
assert.match(vite, /removeHeader\('referer'\)/)
assert.match(vite, /__VUE_I18N_FULL_INSTALL__:\s*true/)
assert.match(vite, /__VUE_I18N_LEGACY_API__:\s*false/)
assert.match(vite, /__VUE_I18N_PROD_DEVTOOLS__:\s*false/)
assert.match(vite, /__INTLIFY_PROD_DEVTOOLS__:\s*false/)
assert.match(styles, /home-operation-grid[^}]*grid-template-columns:\s*repeat\(3/)
assert.match(styles, /home-operation[^}]*width:\s*100%/)
assert.doesNotMatch(styles, /home-operation-primary[^}]*grid-column:\s*1\s*\/\s*-1/)
+6
View File
@@ -29,6 +29,12 @@ export default defineConfig(({ mode }) => {
const overseasTarget = env.OVERSEAS_API_PROXY_TARGET || 'http://127.0.0.1:9300'
return {
plugins: [uni()],
define: {
__VUE_I18N_FULL_INSTALL__: true,
__VUE_I18N_LEGACY_API__: false,
__VUE_I18N_PROD_DEVTOOLS__: false,
__INTLIFY_PROD_DEVTOOLS__: false
},
server: {
proxy: {
'/api': loggedProxy('auth', { target: domesticTarget, changeOrigin: true }),