File tree 2 files changed +3
-3
lines changed
packages/vite/src/node/plugins
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -187,8 +187,8 @@ export function importAnalysisPlugin(config: ResolvedConfig): Plugin {
187
187
188
188
const start = performance . now ( )
189
189
await init
190
- let imports : readonly ImportSpecifier [ ] = [ ]
191
- let exports : readonly ExportSpecifier [ ] = [ ]
190
+ let imports ! : readonly ImportSpecifier [ ]
191
+ let exports ! : readonly ExportSpecifier [ ]
192
192
source = stripBomTag ( source )
193
193
try {
194
194
; [ imports , exports ] = parseImports ( source )
Original file line number Diff line number Diff line change @@ -439,7 +439,7 @@ export function buildImportAnalysisPlugin(config: ResolvedConfig): Plugin {
439
439
// dynamic import to constant json may get inlined.
440
440
if ( chunk . type === 'chunk' && chunk . code . indexOf ( preloadMarker ) > - 1 ) {
441
441
const code = chunk . code
442
- let imports : ImportSpecifier [ ] = [ ]
442
+ let imports ! : ImportSpecifier [ ]
443
443
try {
444
444
imports = parseImports ( code ) [ 0 ] . filter ( ( i ) => i . d > - 1 )
445
445
} catch ( e : any ) {
You can’t perform that action at this time.
0 commit comments