File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -51,7 +51,8 @@ module.exports = {
5151 // or:
5252 // modify its options:
5353 config .plugin (' prefetch' ).tap (options => {
54- options .fileBlackList .push ([/ myasyncRoute(. )+? \. js$ / ])
54+ options[0 ].fileBlacklist = options[0 ].fileBlacklist || []
55+ options[0 ].fileBlacklist .push ([/ myasyncRoute(. )+? \. js$ / ])
5556 return options
5657 })
5758 }
Original file line number Diff line number Diff line change @@ -51,7 +51,8 @@ module.exports = {
5151 // 或者
5252 // 修改它的选项:
5353 config .plugin (' prefetch' ).tap (options => {
54- options .fileBlackList .push ([/ myasyncRoute(. )+? \. js$ / ])
54+ options[0 ].fileBlacklist = options[0 ].fileBlacklist || []
55+ options[0 ].fileBlacklist .push ([/ myasyncRoute(. )+? \. js$ / ])
5556 return options
5657 })
5758 }
You can’t perform that action at this time.
0 commit comments