File tree Expand file tree Collapse file tree 2 files changed +3
-13
lines changed
packages/kit/src/exports/vite Expand file tree Collapse file tree 2 files changed +3
-13
lines changed Original file line number Diff line number Diff line change @@ -103,7 +103,7 @@ export async function build_service_worker(
103
103
} ,
104
104
output : {
105
105
// .mjs so that esbuild doesn't incorrectly inject `export` https://github.com/vitejs/vite/issues/15379
106
- // @ts -expect-error `vite.rolldownVersion` only exists in `rolldown-vite`
106
+ // @ts -ignore `vite.rolldownVersion` only exists in `rolldown-vite`
107
107
entryFileNames : `service-worker.${ vite . rolldownVersion ? 'js' : 'mjs' } ` ,
108
108
assetFileNames : `${ kit . appDir } /immutable/assets/[name].[hash][extname]` ,
109
109
inlineDynamicImports : true
@@ -130,7 +130,7 @@ export async function build_service_worker(
130
130
} ) ;
131
131
132
132
// rename .mjs to .js to avoid incorrect MIME types with ancient webservers
133
- // @ts -expect-error `vite.rolldownVersion` only exists in `rolldown-vite`
133
+ // @ts -ignore `vite.rolldownVersion` only exists in `rolldown-vite`
134
134
if ( ! vite . rolldownVersion ) {
135
135
fs . renameSync ( `${ out } /client/service-worker.mjs` , `${ out } /client/service-worker.js` ) ;
136
136
}
Original file line number Diff line number Diff line change @@ -701,7 +701,7 @@ Tips:
701
701
preserveEntrySignatures : 'strict' ,
702
702
onwarn ( warning , handler ) {
703
703
if (
704
- // @ts -expect-error `vite.rolldownVersion` only exists in `rolldown-vite`
704
+ // @ts -ignore `vite.rolldownVersion` only exists in `rolldown-vite`
705
705
( vite . rolldownVersion
706
706
? warning . code === 'IMPORT_IS_UNDEFINED'
707
707
: warning . code === 'MISSING_EXPORT' ) &&
@@ -729,11 +729,6 @@ Tips:
729
729
}
730
730
}
731
731
}
732
- // TODO: enabling `experimental.enableNativePlugin` causes styles to not be applied
733
- // see https://github.com/vitejs/rolldown-vite/issues/213
734
- // experimental: {
735
- // enableNativePlugin: true
736
- // }
737
732
} ;
738
733
} else {
739
734
new_config = {
@@ -747,11 +742,6 @@ Tips:
747
742
}
748
743
} ,
749
744
publicDir : kit . files . assets
750
- // TODO: enabling `experimental.enableNativePlugin` causes styles to not be applied
751
- // see https://github.com/vitejs/rolldown-vite/issues/213
752
- // experimental: {
753
- // enableNativePlugin: true
754
- // }
755
745
} ;
756
746
}
757
747
You can’t perform that action at this time.
0 commit comments