Skip to content

tinybench-plugin doesn't work with tinybench@4 #44

@alexander-akait

Description

@alexander-akait

Output:

TypeError: Cannot use 'in' operator to search for 'uri' in undefined
      at isCodSpeedBenchOptions (/home/runner/work/webpack/webpack/node_modules/@codspeed/tinybench-plugin/dist/index.cjs.js:67:16)
      at bench.run (/home/runner/work/webpack/webpack/node_modules/@codspeed/tinybench-plugin/dist/index.cjs.js:92:19)
      at file:///home/runner/work/webpack/webpack/test/BenchmarkTestCases.benchmark.mjs:648:13

Ref: https://github.com/webpack/webpack/actions/runs/15047287430/job/42292959584?pr=19533

in tinybench@4 options for a task are stored in fnOpts, but in the plugin code tries to get them from task.opts

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions