mirror of
https://github.com/graphql-hive/console
synced 2026-04-21 14:37:17 +00:00
30 lines
729 B
TypeScript
30 lines
729 B
TypeScript
import path from 'path';
|
|
import { defineConfig } from 'vite';
|
|
import monacoEditor from 'vite-plugin-monaco-editor';
|
|
import tailwindcss from '@tailwindcss/vite';
|
|
import react from '@vitejs/plugin-react';
|
|
|
|
// https://vite.dev/config/
|
|
export default defineConfig(() => {
|
|
return {
|
|
plugins: [
|
|
react(),
|
|
tailwindcss(),
|
|
// @ts-expect-error temp
|
|
monacoEditor.default({
|
|
languageWorkers: ['json', 'typescript', 'editorWorkerService'],
|
|
customWorkers: [
|
|
{
|
|
label: 'graphql',
|
|
entry: 'monaco-graphql/dist/graphql.worker',
|
|
},
|
|
],
|
|
}),
|
|
],
|
|
resolve: {
|
|
alias: {
|
|
'@': path.resolve(__dirname, './src'),
|
|
},
|
|
},
|
|
};
|
|
});
|