HF RL Explorer

Bug: non webpack require is incorrectly replaced with require in ESM output

Bug: non webpack require is incorrectly replaced with require in ESM output: a task in LegoFlow-SWE (Harbor dataset). When webpack is configured to output ES modules ( output.module: true with experiments.outputModule: true ), the non webpack require variable is incorrectly replaced with a bare…

The task

When webpack is configured to output ES modules (`output.module: true` with `experiments.outputModule: true`), the `__non_webpack_require__` variable is incorrectly replaced with a bare `require` call. Since ES modules do not have a native `require` function, this causes a `ReferenceError: require is not defined` at…

Part of Lego-X/LegoFlow-SWE.