( config: OutputOptions, inlineDynamicImports: boolean, inputOptions: NormalizedInputOptions )
| 200 | }; |
| 201 | |
| 202 | const getPreserveModules = ( |
| 203 | config: OutputOptions, |
| 204 | inlineDynamicImports: boolean, |
| 205 | inputOptions: NormalizedInputOptions |
| 206 | ): NormalizedOutputOptions['preserveModules'] => { |
| 207 | const preserveModules = config.preserveModules || false; |
| 208 | if (preserveModules) { |
| 209 | if (inlineDynamicImports) { |
| 210 | return error( |
| 211 | logInvalidOption( |
| 212 | 'output.inlineDynamicImports', |
| 213 | URL_OUTPUT_INLINEDYNAMICIMPORTS, |
| 214 | `this option is not supported for "output.preserveModules"` |
| 215 | ) |
| 216 | ); |
| 217 | } |
| 218 | if (inputOptions.preserveEntrySignatures === false) { |
| 219 | return error( |
| 220 | logInvalidOption( |
| 221 | 'preserveEntrySignatures', |
| 222 | URL_PRESERVEENTRYSIGNATURES, |
| 223 | 'setting this option to false is not supported for "output.preserveModules"' |
| 224 | ) |
| 225 | ); |
| 226 | } |
| 227 | } |
| 228 | return preserveModules; |
| 229 | }; |
| 230 | |
| 231 | const getPreserveModulesRoot = ( |
| 232 | config: OutputOptions |
no test coverage detected
searching dependent graphs…