|
|
@@ -20,10 +20,16 @@ For commercial licensing, please contact [email protected]
|
|
|
import react from '@vitejs/plugin-react';
|
|
|
import { defineConfig, transformWithEsbuild } from 'vite';
|
|
|
import pkg from '@douyinfe/vite-plugin-semi';
|
|
|
+import path from 'path';
|
|
|
const { vitePluginSemi } = pkg;
|
|
|
|
|
|
// https://vitejs.dev/config/
|
|
|
export default defineConfig({
|
|
|
+ resolve: {
|
|
|
+ alias: {
|
|
|
+ '@': path.resolve(__dirname, './src'),
|
|
|
+ },
|
|
|
+ },
|
|
|
plugins: [
|
|
|
{
|
|
|
name: 'treat-js-files-as-jsx',
|