(compiler: BundlerCompiler)
| 3073 | |
| 3074 | // webpack and Rspack build for production where no mode is set |
| 3075 | const environmentOf = (compiler: BundlerCompiler): Environment => ({ |
| 3076 | production: (compiler.options.mode ?? "production") === "production", |
| 3077 | testing: false, |
| 3078 | browser: targetsBrowser(compiler.options.target) |
| 3079 | }) |
| 3080 | |
| 3081 | // "web", a browserslist query or neither set, which webpack and Rspack read |
| 3082 | // as one or the other; unknown where it's set false, for a plugin to decide |
no test coverage detected