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 = {
51
51
// or:
52
52
// modify its options:
53
53
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$ / ])
55
56
return options
56
57
})
57
58
}
Original file line number Diff line number Diff line change @@ -51,7 +51,8 @@ module.exports = {
51
51
// 或者
52
52
// 修改它的选项:
53
53
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$ / ])
55
56
return options
56
57
})
57
58
}
You can’t perform that action at this time.
0 commit comments