( options: Record<string, any>, )
| 1312 | } |
| 1313 | |
| 1314 | export function hasBothRollupOptionsAndRolldownOptions( |
| 1315 | options: Record<string, any>, |
| 1316 | ): boolean { |
| 1317 | for (const opt of [ |
| 1318 | options.build, |
| 1319 | options.worker, |
| 1320 | options.optimizeDeps, |
| 1321 | options.ssr?.optimizeDeps, |
| 1322 | ]) { |
| 1323 | if ( |
| 1324 | opt != null && |
| 1325 | opt.rollupOptions != null && |
| 1326 | opt.rolldownOptions != null && |
| 1327 | // Check they are not just proxy values created by setupRollupOptionCompat |
| 1328 | opt.rollupOptions !== opt.rolldownOptions |
| 1329 | ) { |
| 1330 | return true |
| 1331 | } |
| 1332 | } |
| 1333 | return false |
| 1334 | } |
| 1335 | |
| 1336 | const wsOptionKeys = [ |
| 1337 | 'protocol', |
no outgoing calls
no test coverage detected