File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- import react from "@vitejs/plugin-react" ;
2- import path from "path" ;
1+ import react from '@vitejs/plugin-react' ;
2+ import path from 'path' ;
3+ import type { UserConfig } from 'vite' ;
34
45// https://vitejs.dev/config/
5- export const getConfig = ( ) => ( {
6- root : "." ,
6+ export const getConfig = ( ) : UserConfig => ( {
7+ root : '.' ,
78 plugins : [ react ( ) ] ,
89 build : {
9- outDir : " ./dist" ,
10+ outDir : ' ./dist' ,
1011 emptyOutDir : true ,
1112 cssCodeSplit : false ,
12- sourceMap : true ,
13+ sourcemap : true ,
1314 } ,
1415 resolve : {
1516 preserveSymlinks : true ,
1617 alias : {
17- shared : `${ path . resolve ( __dirname , "./" ) } ` ,
18- " state-in-url" : `${ path . resolve ( __dirname , " ../urlstate" ) } ` ,
18+ shared : `${ path . resolve ( __dirname , './' ) } ` ,
19+ ' state-in-url' : `${ path . resolve ( __dirname , ' ../urlstate' ) } ` ,
1920 } ,
2021 } ,
2122} ) ;
Original file line number Diff line number Diff line change 1- import AutoImport from " unplugin-auto-import/vite" ;
2- import { defineConfig } from " vitest/config" ;
1+ import AutoImport from ' unplugin-auto-import/vite' ;
2+ import { defineConfig } from ' vitest/config' ;
33
44export default defineConfig ( {
55 test : {
6- globalSetup : " ./setup-tests.ts" ,
7- environment : " happy-dom" ,
8- include : [ " **/*.test.?(c|m)[jt]s?(x)" ] ,
6+ globalSetup : ' ./setup-tests.ts' ,
7+ environment : ' happy-dom' ,
8+ include : [ ' **/*.test.?(c|m)[jt]s?(x)' ] ,
99 coverage : {
1010 enabled : true ,
11- include : [ " packages/urlstate" ] ,
12- provider : " istanbul" ,
13- reportsDirectory : " ./coverage-reports" ,
14- reporter : [ " lcov" , " json" , " html" ] ,
11+ include : [ ' packages/urlstate' ] ,
12+ provider : ' istanbul' ,
13+ reportsDirectory : ' ./coverage-reports' ,
14+ reporter : [ ' lcov' , ' json' , ' html' ] ,
1515 } ,
1616 globals : true ,
1717 } ,
1818 plugins : [
1919 AutoImport ( {
20- imports : [ " vitest" ] ,
20+ imports : [ ' vitest' ] ,
2121 dts : true , // generate TypeScript declaration
2222 } ) ,
2323 ] ,
You can’t perform that action at this time.
0 commit comments