Is there a way to package theia and not rely on node_modules
for deployment?
That would be a little more robust and would probably shave some useless dependencies.
[original thread by Julien Eluard]
Is there a way to package theia and not rely on node_modules
for deployment?
That would be a little more robust and would probably shave some useless dependencies.
[original thread by Julien Eluard]
Unfortunately it is not possible to bundle backend since it is using relative paths to find language servers or other 3rd party distributable which are usually belong to node_modules.
You can clean up node modules as here: https://github.com/theia-ide/theia-apps/blob/0cc6a3dc2a6dec1b2b4f9572e9d878a67dc81ff5/theia-docker/Dockerfile#L12-L17
[Julien Eluard]
Thanks!
Is this answer still up-to-date? Or is there a way to package theia without node_modules?
AFAIK this is up to date indeed.
Feel free to find ways to bundle everything into a self contained executable. Maybe by bundling the backend code using webpack and some amount of tree shaking. I don’t think it is a trivial issue.