File tree Expand file tree Collapse file tree 2 files changed +9
-10
lines changed Expand file tree Collapse file tree 2 files changed +9
-10
lines changed Original file line number Diff line number Diff line change @@ -224,7 +224,6 @@ module.exports = {
224
224
Chunk Flushing is the mechanism used to _ flush_ dynamic imported chunks out of a render and into the HTML of a document.
225
225
If you want to SSR the ` <script> ` tags of federated imports, reducing Round Trip Time (RTT). You can enable the following experiment
226
226
227
-
228
227
1 . Enable the flushChunk experiment via the plugin
229
228
230
229
``` js
Original file line number Diff line number Diff line change @@ -217,21 +217,21 @@ export class ExtendedHead extends Head {
217
217
} ) ;
218
218
}
219
219
}
220
- var interval
220
+ var interval ;
221
221
const hashmap = { } ;
222
222
const revalidate = ( options ) => {
223
223
if ( global . REMOTE_CONFIG ) {
224
224
return new Promise ( ( res ) => {
225
225
const { poll, timeout } = Object . assign (
226
- {
227
- poll : process . env . NODE_ENV === "development" ,
228
- timeout : 3000 ,
229
- } ,
230
- options
226
+ {
227
+ poll : process . env . NODE_ENV === "development" ,
228
+ timeout : 3000 ,
229
+ } ,
230
+ options
231
231
) ;
232
232
233
- if ( poll && interval ) {
234
- clearInterval ( interval )
233
+ if ( poll && interval ) {
234
+ clearInterval ( interval ) ;
235
235
}
236
236
237
237
if ( poll ) {
@@ -252,7 +252,7 @@ const revalidate = (options) => {
252
252
hashmap [ name ] = hash ;
253
253
console . log ( name , "hash is different - must hot reload server" ) ;
254
254
res ( ) ;
255
- if ( poll ) {
255
+ if ( poll ) {
256
256
process . exit ( ) ;
257
257
}
258
258
}
You can’t perform that action at this time.
0 commit comments