* Whether the bundle targets node and web at once (universal `["node", "web"]` + `output.module`), like `isUniversalTarget` in `WebpackOptionsApply`. * @returns {boolean} true for a universal target
()
| 136 | * @returns {boolean} true for a universal target |
| 137 | */ |
| 138 | isUniversalTarget() { |
| 139 | const { platform } = this.compilation.compiler; |
| 140 | return ( |
| 141 | Boolean(this.outputOptions.module) && |
| 142 | platform.node === null && |
| 143 | platform.web === null |
| 144 | ); |
| 145 | } |
| 146 | |
| 147 | /** |
| 148 | * Runtime expression that is truthy in browser-like environments (a DOM |
no outgoing calls
no test coverage detected