…and by “exploded” I’m talking about the size of the compiled file–it has tripled!!!
I know that something changed, but I’m not sure which change is causing this. My app used to compile and end up with an APK size of about 23MB. The iOS IPA file was about the same size.
However, in the past few days I started seeing file sizes about 3-4 times that. I now have 70MB to 80MB file sizes!
I discovered that the
tns_modules folder contains what looks like ALL of the
npm_modules, even the ones from the
devDependencies section of my
package.json file. This is where all the size is coming from. Older versions of my app only have the modules which are needed at runtime in their
I know that I updated npm to a newer version, but I went back to a much older version (3.x) and the problem persists, though the file size went down to about 68MB.
Has anyone else run across this? If so, have you solved it?
I’m at a loss. This is happening on both my Windows laptop as well as my MacBook Pro, compiling the same project source files. I’m on NativeScript version 3.3.1 at the moment and am building from the command line (not Sidekick).
Please let me know if you have any tips to solve this or have some additional suggestions to try, or need additional information.