Files
tools/vue/editor/playground/vite.config.ts
T
robonen 09272dffeb feat(editor): eslint/tsconfig migration + type fixes
@robonen/editor: migrate to eslint flat config + composite tsconfig; fix
convergence test type annotations.
2026-06-07 16:30:05 +07:00

29 lines
663 B
TypeScript

import { URL, fileURLToPath } from 'node:url';
import vue from '@vitejs/plugin-vue';
import { defineConfig } from 'vite';
export default defineConfig(({ mode }) => ({
plugins: [vue()],
define: {
__DEV__: JSON.stringify(mode !== 'production'),
},
resolve: {
alias: [
{
find: /^@editor\/(.*)$/,
replacement: fileURLToPath(new URL('../src/$1', import.meta.url)),
},
{
find: /^@editor$/,
replacement: fileURLToPath(new URL('../src/index.ts', import.meta.url)),
},
],
},
server: {
port: 5181,
fs: {
allow: [fileURLToPath(new URL('../', import.meta.url))],
},
},
}));