chore(config): add fileURLToPath import for path resolution
This change introduces the fileURLToPath import to enhance path handling in the configuration files.
This commit is contained in:
parent
46b5413f07
commit
16dbdbdad1
2 changed files with 6 additions and 0 deletions
|
|
@ -1,4 +1,5 @@
|
|||
import path from "node:path";
|
||||
import { fileURLToPath } from "node:url";
|
||||
|
||||
import basicSsl from "@vitejs/plugin-basic-ssl";
|
||||
import vue from "@vitejs/plugin-vue";
|
||||
|
|
@ -16,6 +17,8 @@ const isCI = !!process.env.CI;
|
|||
const debugMode = ["local", "development"].includes(process.env.NODE_ENV ?? "");
|
||||
const browserTargets = ["es2019", "edge92", "firefox88", "chrome92", "safari15"];
|
||||
|
||||
const __dirname = path.dirname(fileURLToPath(import.meta.url));
|
||||
|
||||
export default defineConfig({
|
||||
build: {
|
||||
chunkSizeWarningLimit: 1500,
|
||||
|
|
|
|||
|
|
@ -1,7 +1,10 @@
|
|||
import path from "node:path";
|
||||
import { fileURLToPath } from "node:url";
|
||||
|
||||
import { defineConfig } from "vitest/config";
|
||||
|
||||
const __dirname = path.dirname(fileURLToPath(import.meta.url));
|
||||
|
||||
export default defineConfig({
|
||||
resolve: {
|
||||
alias: {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue