mirror of
https://github.com/shlinkio/shlink-web-client.git
synced 2025-01-08 09:17:29 +03:00
Silenced type error in vite config
This commit is contained in:
parent
0280fc0f59
commit
03c0f4649f
1 changed files with 2 additions and 1 deletions
|
@ -2,12 +2,13 @@ import react from '@vitejs/plugin-react';
|
|||
import { VitePWA } from 'vite-plugin-pwa';
|
||||
import { defineConfig } from 'vitest/config';
|
||||
import { manifest } from './manifest';
|
||||
import pack from './package.json';
|
||||
import pack from './package.json' with { type: 'json' };
|
||||
|
||||
const homepage = pack.homepage?.trim();
|
||||
|
||||
/* eslint-disable-next-line no-restricted-exports */
|
||||
export default defineConfig({
|
||||
// @ts-expect-error Error caused by vitest using vite 5 and the root using vite 6. To be fixed in vitest 3.
|
||||
plugins: [react(), VitePWA({
|
||||
mode: process.env.NODE_ENV === 'development' ? 'development' : 'production',
|
||||
strategies: 'injectManifest',
|
||||
|
|
Loading…
Reference in a new issue