diff --git a/babel.config.js b/babel.config.js deleted file mode 100644 index 038c6ed..0000000 --- a/babel.config.js +++ /dev/null @@ -1,8 +0,0 @@ -module.exports = { - presets: [ - '@vue/cli-plugin-babel/preset' - ], - plugins: [ - '@babel/plugin-proposal-private-methods' - ] -} diff --git a/vite.config.js b/vite.config.js index 5fb8ddf..7963b4e 100644 --- a/vite.config.js +++ b/vite.config.js @@ -2,7 +2,10 @@ import { fileURLToPath, URL } from 'node:url' import { defineConfig } from 'vite' import vue from '@vitejs/plugin-vue' -const path = require('path') +import path from 'path'; + +const __filename = fileURLToPath(import.meta.url); +const __dirname = path.dirname(__filename); // https://vitejs.dev/config/ export default defineConfig({