feat(app): add browser toolkit support
This commit is contained in:
@@ -3,6 +3,8 @@ import path from 'node:path';
|
||||
import react from '@vitejs/plugin-react';
|
||||
import { defineConfig } from 'vite';
|
||||
|
||||
import packageJson from './package.json';
|
||||
|
||||
const platformExtensions = [
|
||||
'.web.tsx',
|
||||
'.web.ts',
|
||||
@@ -16,6 +18,9 @@ const platformExtensions = [
|
||||
];
|
||||
|
||||
export default defineConfig({
|
||||
define: {
|
||||
'import.meta.env.VITE_APP_VERSION': JSON.stringify(packageJson.version),
|
||||
},
|
||||
plugins: [react()],
|
||||
resolve: {
|
||||
alias: [{ find: /^react-native$/, replacement: 'react-native-web' }],
|
||||
|
||||
Reference in New Issue
Block a user