Skip to content

Commit

Permalink
chore(ui): prepared vite6 extension drop
Browse files Browse the repository at this point in the history
This commit is aimed to prepare the vite configuration for future
support without .ts extension support.
  • Loading branch information
luannmoreira committed Apr 12, 2024
1 parent 879dbda commit 0f856ba
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
File renamed without changes.
1 change: 1 addition & 0 deletions ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
4 changes: 2 additions & 2 deletions ui/tsconfig.node.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"compilerOptions": {
"composite": true,
"module": "esnext",
"module": "ESNext",
"moduleResolution": "node"
},
"include": ["vite.config.ts"]
"include": ["vite.config.mts"]
}
4 changes: 2 additions & 2 deletions ui/vite.config.ts → ui/vite.config.mts
Original file line number Diff line number Diff line change
@@ -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";

Expand Down Expand Up @@ -36,7 +36,7 @@ function NodeGlobalsPolyfillPlugin(options) {
export default defineConfig({
plugins: [
Vue(),
VuetifyPlugin({
vuetify({
autoImport: true,
}),
Markdown({ markdownItOptions: {
Expand Down

0 comments on commit 0f856ba

Please sign in to comment.