From 0f856baedfc34c6a5c63544bb9efcdcb1354ed2a Mon Sep 17 00:00:00 2001 From: Luann Moreira Date: Fri, 12 Apr 2024 10:22:47 -0300 Subject: [PATCH] chore(ui): prepared vite6 extension drop This commit is aimed to prepare the vite configuration for future support without .ts extension support. --- ui/{.eslintrc.js => .eslintrc.cjs} | 0 ui/package.json | 1 + ui/tsconfig.node.json | 4 ++-- ui/{vite.config.ts => vite.config.mts} | 4 ++-- 4 files changed, 5 insertions(+), 4 deletions(-) rename ui/{.eslintrc.js => .eslintrc.cjs} (100%) rename ui/{vite.config.ts => vite.config.mts} (95%) diff --git a/ui/.eslintrc.js b/ui/.eslintrc.cjs similarity index 100% rename from ui/.eslintrc.js rename to ui/.eslintrc.cjs diff --git a/ui/package.json b/ui/package.json index 5701ed7efed..2855799e55d 100644 --- a/ui/package.json +++ b/ui/package.json @@ -2,6 +2,7 @@ "name": "ui", "version": "0.0.0", "private": true, + "type": "module", "scripts": { "serve": "vite preview --host", "build": "vue-tsc --noEmit && vite build", diff --git a/ui/tsconfig.node.json b/ui/tsconfig.node.json index e993792cb12..d4f4cd97f79 100755 --- a/ui/tsconfig.node.json +++ b/ui/tsconfig.node.json @@ -1,8 +1,8 @@ { "compilerOptions": { "composite": true, - "module": "esnext", + "module": "ESNext", "moduleResolution": "node" }, - "include": ["vite.config.ts"] + "include": ["vite.config.mts"] } diff --git a/ui/vite.config.ts b/ui/vite.config.mts similarity index 95% rename from ui/vite.config.ts rename to ui/vite.config.mts index ffea159940a..3b4190d4495 100755 --- a/ui/vite.config.ts +++ b/ui/vite.config.mts @@ -1,6 +1,6 @@ import { defineConfig } from "vite"; import Vue from "@vitejs/plugin-vue"; -import VuetifyPlugin from "vite-plugin-vuetify"; +import vuetify from "vite-plugin-vuetify"; import Markdown from "unplugin-vue-markdown/vite"; import * as path from "node:path"; @@ -36,7 +36,7 @@ function NodeGlobalsPolyfillPlugin(options) { export default defineConfig({ plugins: [ Vue(), - VuetifyPlugin({ + vuetify({ autoImport: true, }), Markdown({ markdownItOptions: {