Skip to content
This repository has been archived by the owner on Aug 4, 2023. It is now read-only.

Include ethers.js in runtime #281

Open
romanlv opened this issue Jan 24, 2023 · 1 comment
Open

Include ethers.js in runtime #281

romanlv opened this issue Jan 24, 2023 · 1 comment
Labels
canny runtimes anything regarding runtime behaviour and included packages

Comments

@romanlv
Copy link

romanlv commented Jan 24, 2023

Is your feature request related to a problem? Please describe.
I'm creating browser checks for web3 application. This app uses web3 provider (wallet), that is usually provided by browser extension (e.g. Metamask), but for Playwright tests it's possible to use headless provider (headless-web3-provider npm dep). The implementation relies on ethers.js npm package.
So I'm including all those npm deps by bundling them into the js script. Unfortunately ethers.js lib is big (> 300Kb), and I have been told that the Checkly script size limit is only 256Kb

Describe the solution you'd like
Ideally to have a ethers (and posibly rxjs) in the default runtime.

Describe alternatives you've considered
Increase the script size limit to 1Mb (500Kb works too)
or to have ability to install npm dependencies defined in package.json (or any other way)

@tnolet
Copy link
Member

tnolet commented Jan 24, 2023

@romanlv thanks for contributing. We sadly cannot increase the script size limit as we have to send all of it across a queue / messaging system that has some hard limits. Let me see if ethers.js and rxjs make sense to add to our runtime. We are a bit strict on adding packages there due to various reasons (maintenance, security etc.)

@tnolet tnolet added the runtimes anything regarding runtime behaviour and included packages label Jan 24, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
canny runtimes anything regarding runtime behaviour and included packages
Projects
None yet
Development

No branches or pull requests

3 participants