Merge pull request #21204 from strapi/fix/vite-template

fix: template vite config example
This commit is contained in:
Alexandre BODIN 2024-09-10 14:55:56 +02:00 committed by GitHub
commit 25a51f164c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 6 additions and 6 deletions

View File

@ -1,6 +1,6 @@
const { mergeConfig } = require('vite');
import { mergeConfig, type UserConfig } from 'vite';
module.exports = (config) => {
export default (config: UserConfig) => {
// Important: always return the modified config
return mergeConfig(config, {
resolve: {

View File

@ -1,6 +1,6 @@
const { mergeConfig } = require('vite');
import { mergeConfig, type UserConfig } from 'vite';
module.exports = (config) => {
export default (config: UserConfig) => {
// Important: always return the modified config
return mergeConfig(config, {
resolve: {

View File

@ -1,6 +1,6 @@
const { mergeConfig } = require('vite');
import { mergeConfig, type UserConfig } from 'vite';
module.exports = (config) => {
export default (config: UserConfig) => {
// Important: always return the modified config
return mergeConfig(config, {
resolve: {