( outputPath, format, globals, globalName, bundleType )
| 201 | }; |
| 202 | |
| 203 | function getRollupOutputOptions( |
| 204 | outputPath, |
| 205 | format, |
| 206 | globals, |
| 207 | globalName, |
| 208 | bundleType |
| 209 | ) { |
| 210 | const isProduction = isProductionBundleType(bundleType); |
| 211 | |
| 212 | return { |
| 213 | file: outputPath, |
| 214 | format, |
| 215 | globals, |
| 216 | freeze: !isProduction, |
| 217 | interop: getRollupInteropValue, |
| 218 | name: globalName, |
| 219 | sourcemap: false, |
| 220 | esModule: false, |
| 221 | exports: 'auto', |
| 222 | }; |
| 223 | } |
| 224 | |
| 225 | function getFormat(bundleType) { |
| 226 | switch (bundleType) { |
no test coverage detected