plugin-seed icon indicating copy to clipboard operation
plugin-seed copied to clipboard

[Question] Can node modules that have a binary still be hoisted?

Open shirakaba opened this issue 5 years ago • 0 comments

At this point, my demo app's package.json contains only one dependency that isn't hoisted: @nativescript/webpack.

I'm still amazed though, that this one dependency alone leads to the installation of all these other node modules. Given that any folder that lacks an "alias" arrow – except for the case where the folder is an organisation name – indicates that it wasn't hoisted:

image

... To my understanding, in the general case, Nx can't hoist any devDependency that hosts a binary executable; but is there some kind of advanced (yet safe) workaround for this? Just seems a shame to be carrying nearly 95.2 MB in each of my demo apps's node_modules folders just because of @nativescript/webpack.

shirakaba avatar Nov 26 '20 23:11 shirakaba