File tree Expand file tree Collapse file tree 1 file changed +1
-25
lines changed
packages/e2e-tests/kit-node Expand file tree Collapse file tree 1 file changed +1
-25
lines changed Original file line number Diff line number Diff line change @@ -15,33 +15,9 @@ export default {
15
15
minify : false ,
16
16
sourcemap : true // must be true for hermetic build test!
17
17
} ,
18
- plugins : [
19
- transformValidation ( ) ,
20
- sveltekit ( ) ,
21
- writeResolvedConfig ( ) ,
22
- workaroundInlineSvelteCssIssue ( )
23
- ] ,
18
+ plugins : [ transformValidation ( ) , sveltekit ( ) , writeResolvedConfig ( ) ] ,
24
19
optimizeDeps : {
25
20
// eagerly include these, otherwise vite optimizer might interfere with restarting while the test is running
26
21
include : [ 'svelte-i18n' , 'e2e-test-dep-svelte-api-only' ]
27
22
}
28
23
} ;
29
-
30
- /**
31
- * Workaround until https://github.com/sveltejs/kit/pull/13007 is merged
32
- * @returns {import('vite').Plugin }
33
- */
34
- function workaroundInlineSvelteCssIssue ( ) {
35
- return {
36
- name : 'workaround-inline-svelte-css-issue' ,
37
- enforce : 'pre' ,
38
- resolveId ( id ) {
39
- // SvelteKit relies on a previous behaviour in v-p-s where it strips out the inline
40
- // query to get the CSS result, however this no longer works in Vite 6 and should be
41
- // fixed in SvelteKit instead, otherwise FOUC will happen in dev.
42
- if ( id . includes ( '?svelte' ) ) {
43
- return id . replace ( / & i n l i n e = $ / , '' ) ;
44
- }
45
- }
46
- } ;
47
- }
You can’t perform that action at this time.
0 commit comments