error TS5095: Option 'bundler' can only be used when 'module' is set to 'es2015' or later.


!!! error TS5095: Option 'bundler' can only be used when 'module' is set to 'es2015' or later.
==== /node_modules/dep/package.json (0 errors) ====
    // This documents bug https://github.com/microsoft/TypeScript/issues/50762.
    
    {
      "name": "dep",
      "version": "1.0.0",
      "exports": {
        ".": {
            "import": "./dist/index.mjs",
            "require": "./dist/index.js",
            "types": "./dist/index.d.ts",
        }
      }
    }
    
==== /node_modules/dep/dist/index.d.ts (0 errors) ====
    export {};
    
==== /node_modules/dep/dist/index.mjs (0 errors) ====
    export {};
    
==== /index.mts (0 errors) ====
    import {} from "dep";
    // Should be an untyped resolution to dep/dist/index.mjs,
    // but the first search is only for TS files, and when
    // there's no dist/index.d.mts, it continues looking for
    // matching conditions and resolves via `types`.