* Sets up `rollupOptions` compat proxies for an environment.
(environment: any)
| 1301 | * Sets up `rollupOptions` compat proxies for an environment. |
| 1302 | */ |
| 1303 | function setupRollupOptionCompatForEnvironment(environment: any): any { |
| 1304 | if (!isObject(environment)) { |
| 1305 | return environment |
| 1306 | } |
| 1307 | const merged: Record<string, any> = { ...environment } |
| 1308 | if (isObject(merged.build)) { |
| 1309 | setupRollupOptionCompat(merged.build, 'build') |
| 1310 | } |
| 1311 | return merged |
| 1312 | } |
| 1313 | |
| 1314 | export function hasBothRollupOptionsAndRolldownOptions( |
| 1315 | options: Record<string, any>, |
no test coverage detected