* @param {string} name - The filename of the script. * @param {string} body - The code of the script. * @returns {boolean} Whether the module entry point should be evaluated as a module.
(name, body)
| 436 | * @returns {boolean} Whether the module entry point should be evaluated as a module. |
| 437 | */ |
| 438 | function shouldUseModuleEntryPoint(name, body) { |
| 439 | return getOptionValue('--experimental-detect-module') && |
| 440 | getOptionValue('--input-type') === '' && |
| 441 | containsModuleSyntax(body, name, null, 'no CJS variables'); |
| 442 | } |
| 443 | |
| 444 | /** |
| 445 | * |
no test coverage detected
searching dependent graphs…