Skip to content
This repository has been archived by the owner on Apr 11, 2024. It is now read-only.

Suite not found when bundling with Rollup #244

Open
jonkoops opened this issue May 20, 2021 · 1 comment
Open

Suite not found when bundling with Rollup #244

jonkoops opened this issue May 20, 2021 · 1 comment

Comments

@jonkoops
Copy link

I have a simple application hat uses Rollup to bundle some performance tests using benchmark and it cannot find the Suite class.

import benchmark from 'benchmark'

// TypeError: benchmark.Suite is not a constructor
const suite = new benchmark.Suite()

I've created an isolated code example that will produce this error here: https://github.com/jonkoops/rollup-bench

@horizon0514
Copy link

import * as Benchmark from 'benchmark';

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

2 participants