File tree Expand file tree Collapse file tree 1 file changed +18
-15
lines changed Expand file tree Collapse file tree 1 file changed +18
-15
lines changed Original file line number Diff line number Diff line change @@ -2,21 +2,24 @@ import { sveltekit } from '@sveltejs/kit/vite';
2
2
3
3
/** @type {import('vite').UserConfig } */
4
4
const config = {
5
- plugins : [ sveltekit ( ) ] ,
6
- test : {
7
- include : [ 'src/**/*.{test,spec}.{js,ts}' ]
8
- } ,
9
- build : {
10
- target : 'es2019' , // Ensure compatibility
11
- rollupOptions : {
12
- output : {
13
- format : 'esm' // Force ES module output
14
- }
15
- }
16
- } ,
17
- optimizeDeps : {
18
- include : [ 'lodash' ] // Pre-bundle lodash
19
- }
5
+ plugins : [ sveltekit ( ) ] ,
6
+ test : {
7
+ include : [ 'src/**/*.{test,spec}.{js,ts}' ]
8
+ } ,
9
+ build : {
10
+ target : 'es2019' , // Ensure compatibility
11
+ commonjsOptions : {
12
+ transformMixedEsModules : true
13
+ } ,
14
+ rollupOptions : {
15
+ output : {
16
+ format : 'esm' // Force ES module output
17
+ }
18
+ }
19
+ } ,
20
+ optimizeDeps : {
21
+ include : [ 'lodash' , 'country-to-iso' ] // Pre-bundle these dependencies
22
+ }
20
23
} ;
21
24
22
25
export default config ;
You can’t perform that action at this time.
0 commit comments