From d0959e4c38e2ee699000c134b5e07a8803c64f20 Mon Sep 17 00:00:00 2001 From: Steve Persch Date: Mon, 7 Oct 2024 17:59:18 -0500 Subject: [PATCH] adding vite.config.ts --- vite.config.ts | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 vite.config.ts diff --git a/vite.config.ts b/vite.config.ts new file mode 100644 index 0000000000..7b08050e61 --- /dev/null +++ b/vite.config.ts @@ -0,0 +1,16 @@ +import { defineConfig } from 'vite'; + +// https://vitejs.dev/config/ +export default defineConfig({ + test: { + server: { + deps: { + // Without this line, the build will fail with a message like: + // Unknown file extension ".css" for /Users/xxxxxxxxxxx/Sites/documentation/node_modules/@pantheon-systems/pds-toolkit-react/_dist/index.css + //similar to: + // https://github.com/vitest-dev/vitest/issues/5283 + inline: [/@pantheon-systems\/.*/,], + }, + }, + }, +});