layer has @types (~3MB) #1170
Locked
Muthuveerappanv
started this conversation in
General
Replies: 1 comment 1 reply
-
Hi @Muthuveerappanv thank you for reporting this, we are going to investigate and try to come up with a solution. Ideally we'd like to shave some data if this doesn't break things. I have opened an issue to track this effort #1171 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Layers when unzipped (6.0M)
The @types directory occupies 3.6M in the layers data, Since @types aren't used at runtime, they can be readily removed

Without @types (2.4 M)
I did
rm -rf node_modules/@types
Using tools like node-prune
I have had much success with using node-prune as well, it takes away unused, files and reduces the size of
node_modules
by a good number, but has to be thoroughly tested.Beta Was this translation helpful? Give feedback.
All reactions