added route preview

This commit is contained in:
2025-04-15 21:12:43 +03:00
parent b6449b02c0
commit 4dd149f2af
193 changed files with 3568 additions and 1692 deletions

View File

@ -1,6 +1,17 @@
import {defineConfig} from 'vite'
import react from '@vitejs/plugin-react'
import { defineConfig } from "vite";
import react from "@vitejs/plugin-react";
import * as path from "path";
import svgr from "vite-plugin-svgr";
export default defineConfig({
plugins: [react()],
})
plugins: [react(), svgr()],
resolve: {
alias: {
"@mt/common-types": path.resolve(__dirname, "./src/preview/types"),
"@mt/components": path.resolve(__dirname, "./src/preview/components"),
"@mt/i18n": path.resolve(__dirname, "./src/preview/i18n"),
"@mt/widgets": path.resolve(__dirname, "./src/preview/widgets"),
"@mt/utils": path.resolve(__dirname, "./src/preview/utils"),
},
},
});