If you download your default JS model, unzip it and check the node_modules
size, you’ll see that it consumes 40.6Mb:
As I said you can reduce the size of modules by revising your dependencies, potentially getting rid of unnecessary modules if there are any, and also omitting unnecessary files/directories when deploying for those modules that you need (for example, there is a module fooBar, which has a folder inside - “examples”. It takes up space and you don’t want them to end up in your deployment model. You can omit it by adding the following exclusion pattern in app.files
of the coderunner.json
file - !node_modules/fooBar/examples
. This will instruct the coderunner to skip this directory when deploy.
Regards,
Stanislaw