mirror of
https://github.com/luxfi/wallet.git
synced 2026-07-27 03:37:41 +00:00
fix(extension): add missing getTsconfigAliases import + publicAssetsVariant const
wxt.config.ts referenced both but neither was imported/defined. - Import getTsconfigAliases from ./config/getTsconfigAliases - Define publicAssetsVariant from WXT_PUBLIC_ASSETS_VARIANT env (default: prod) Without these, wxt build fails: getTsconfigAliases is not defined.
This commit is contained in:
@@ -7,6 +7,7 @@ import { nodePolyfills } from 'vite-plugin-node-polyfills'
|
||||
import svgr from 'vite-plugin-svgr'
|
||||
import tsconfigPaths from 'vite-tsconfig-paths'
|
||||
import { defineConfig } from 'wxt'
|
||||
import { getTsconfigAliases } from './config/getTsconfigAliases'
|
||||
const BASE_NAME = process.env.BRAND_EXTENSION_NAME || '▼ Wallet'
|
||||
const BASE_DESCRIPTION = process.env.BRAND_EXTENSION_DESC || 'Self-custody crypto wallet for swapping, bridging, and managing digital assets.'
|
||||
const BASE_VERSION = '1.69.0'
|
||||
@@ -14,6 +15,14 @@ const BASE_VERSION = '1.69.0'
|
||||
const BUILD_NUM = parseInt(process.env.BUILD_NUM || '0')
|
||||
const EXTENSION_VERSION = `${BASE_VERSION}.${BUILD_NUM}`
|
||||
|
||||
// Build variant directory under src/publicAssetsByEnv/. Determines which icons,
|
||||
// manifest images, and copy bundles ship with the extension.
|
||||
// prod = production stores (Chrome Web Store + Firefox Add-ons)
|
||||
// beta = beta channel
|
||||
// dev = local development
|
||||
// default = same as prod when env not set
|
||||
const publicAssetsVariant = process.env.WXT_PUBLIC_ASSETS_VARIANT || 'prod'
|
||||
|
||||
/**
|
||||
* Vite's optimizeDeps cache hash doesn't include `define` values, so changing env vars
|
||||
* (which are injected via `define` as `process.env.X` replacements) won't invalidate the
|
||||
|
||||
Reference in New Issue
Block a user