ethereum / remix-project

Remix is a browser-based compiler and IDE that enables users to build Ethereum contracts with Solidity language and to debug transactions.
https://remix-ide.readthedocs.io
MIT License
2.43k stars 934 forks source link

Is it possible to use external libraries in the scripts? #4589

Open kwkr opened 7 months ago

kwkr commented 7 months ago

Let's say I'm writing a custom script and would need some functionality from lodash, is there currently a way to do this?

Aniket-Engg commented 7 months ago

Remix supports a limited number of external libraries. List is here: https://remix-ide.readthedocs.io/en/latest/running_js_scripts.html#require-in-scripts-at-remix

kwkr commented 7 months ago

@Aniket-Engg Thank you for your response! Is it possible to somehow influence this behaviour from a plugin? Let's say I'm writing a plugin and want some libraries to be available within the terminal.

yann300 commented 7 months ago

we are working on something that would allow to load libs dynamically.

and want some libraries to be available within the terminal.

you mean NPM library right? @kwkr

kwkr commented 7 months ago

exactly.