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

Benchmark may not be browser global in ESM bundle #246

Open
loynoir opened this issue Aug 16, 2021 · 0 comments
Open

Benchmark may not be browser global in ESM bundle #246

loynoir opened this issue Aug 16, 2021 · 0 comments

Comments

@loynoir
Copy link

loynoir commented Aug 16, 2021

Scenario

Using rollup generate ESM bundle for browser

Expected

ESM bundle works with no Benchmark in browser global

Actual

Browser all failed error, complains there is no global Benchmark.

Related line

prefix = '(' + (freeDefine ? 'define.amd.' : 'Benchmark.') + prop + '||function(){})();';

Should fixed in pull

#245

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

1 participant