How to include additional node modules to the project

Hi,

I’m pretty new to sage and and i’m trying to include a node_module I installed via npm install. Now i want the node_module to be included in my project but I have no idea how to do that. I assume i have to add something to webpack in order to bundle the js of the given module with the rest of the files.

I read the documentation but this isn’t covered anywhere afaik or I missed it.

So my question is: How do you include/use a node_module in your project.

Thanks,

Nick

The latest docs are in the Sage 9 branch.

1 Like

Thanks for the hint, I got it working!