remix-project icon indicating copy to clipboard operation
remix-project copied to clipboard

Is it possible to use external libraries in the scripts?

Open kwkr opened this issue 5 months ago • 4 comments

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

kwkr avatar Feb 28 '24 16:02 kwkr

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

Aniket-Engg avatar Feb 29 '24 06:02 Aniket-Engg

@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.

kwkr avatar Feb 29 '24 10:02 kwkr

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

yann300 avatar Mar 01 '24 08:03 yann300

exactly.

kwkr avatar Mar 01 '24 08:03 kwkr