File tree Expand file tree Collapse file tree 3 files changed +9
-3
lines changed
Expand file tree Collapse file tree 3 files changed +9
-3
lines changed Original file line number Diff line number Diff line change 2929 "clean" : " rm -rf dist" ,
3030 "add-header" : " ./scripts/add-node-executable-header.sh" ,
3131 "cli-docs" : " npx tsx scripts/make_cli_docs.ts" ,
32- "check-types" : " tsc --noEmit"
32+ "check-types" : " tsc --noEmit" ,
33+ "test" : " vitest run" ,
34+ "test:watch" : " vitest"
3335 },
3436 "dependencies" : {
3537 "commander" : " catalog:" ,
Original file line number Diff line number Diff line change @@ -20,9 +20,10 @@ export const esbuildPluginPlatformInject = (
2020
2121 // Early return if file doesn't need any transformations
2222 const hasPlatformAnnotations = / @ p l a t f o r m " ( n o d e | b r o w s e r | r e a c t - n a t i v e | f e t c h ) " / . test ( source ) ;
23- const hasServerCalls = preserveServerStatesAndActions && / c r e a t e S e r v e r ( S t a t e | S t a t e s | A c t i o n | A c t i o n s ) / . test ( source ) ;
23+ const hasServerCalls = / c r e a t e S e r v e r ( S t a t e | S t a t e s | A c t i o n | A c t i o n s ) / . test ( source ) ;
24+ const needsServerProcessing = hasServerCalls && ( ( platform === 'browser' || platform === 'react-native' ) && ! preserveServerStatesAndActions ) ;
2425
25- if ( ! hasPlatformAnnotations && ! hasServerCalls ) {
26+ if ( ! hasPlatformAnnotations && ! needsServerProcessing ) {
2627 return {
2728 contents : source ,
2829 loader : args . path . split ( '.' ) . pop ( ) as 'js' ,
Original file line number Diff line number Diff line change 1+ import config from '../../../configs/vite.config' ;
2+
3+ export default config ;
You can’t perform that action at this time.
0 commit comments