File tree 2 files changed +6
-4
lines changed
2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -9,11 +9,12 @@ export default defineConfig({
9
9
{
10
10
name : 'compatible:svelte:kit' ,
11
11
post : 'pre' ,
12
+ enforce : 'pre' ,
12
13
resolveId ( id : string ) {
13
- if ( id === '$app/environment ' ) return '\0$app/environment ' ;
14
+ if ( id === 'esm-env ' ) return '\0esm-env ' ;
14
15
} ,
15
16
load ( id : string ) {
16
- if ( id === '\0$app/environment ' ) return 'export const browser = true' ;
17
+ if ( id === '\0esm-env ' ) return 'export const BROWSER = true' ;
17
18
}
18
19
} as Plugin
19
20
] ,
Original file line number Diff line number Diff line change @@ -10,11 +10,12 @@ export default defineConfig({
10
10
{
11
11
name : 'compatible:svelte:kit' ,
12
12
post : 'pre' ,
13
+ enforce : 'pre' ,
13
14
resolveId ( id : string ) {
14
- if ( id === '$app/environment ' ) return '\0$app/environment ' ;
15
+ if ( id === 'esm-env ' ) return '\0esm-env ' ;
15
16
} ,
16
17
load ( id : string ) {
17
- if ( id === '\0$app/environment ' ) return 'export const browser = true' ;
18
+ if ( id === '\0esm-env ' ) return 'export const BROWSER = true' ;
18
19
}
19
20
} as Plugin
20
21
] ,
You can’t perform that action at this time.
0 commit comments