mirror of
https://github.com/shlinkio/shlink-web-client.git
synced 2025-01-09 01:37:24 +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 { VitePWA } from 'vite-plugin-pwa';
|
||||||
import { defineConfig } from 'vitest/config';
|
import { defineConfig } from 'vitest/config';
|
||||||
import { manifest } from './manifest';
|
import { manifest } from './manifest';
|
||||||
import pack from './package.json';
|
import pack from './package.json' with { type: 'json' };
|
||||||
|
|
||||||
const homepage = pack.homepage?.trim();
|
const homepage = pack.homepage?.trim();
|
||||||
|
|
||||||
/* eslint-disable-next-line no-restricted-exports */
|
/* eslint-disable-next-line no-restricted-exports */
|
||||||
export default defineConfig({
|
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({
|
plugins: [react(), VitePWA({
|
||||||
mode: process.env.NODE_ENV === 'development' ? 'development' : 'production',
|
mode: process.env.NODE_ENV === 'development' ? 'development' : 'production',
|
||||||
strategies: 'injectManifest',
|
strategies: 'injectManifest',
|
||||||
|
|
Loading…
Reference in a new issue