I noticed that all scripts referenced by a script included in a bundle are also included in the bundle.
I have a helper class assetManagerAsync
in the “scripts” folder that implements some functions upon assetManager
using Promise. I want to use it in components included in an asset bundle, but I don’t want that helper class to be included as well.
This also applies to NPM packages, whose code is also included in the bundle.
Is there a way to prevent this?