0

As defined in the npm package.json docs, in npm 8 and above, I can set bundleDependencies to the boolean value true, which will bundle all of my dependencies. However, every time I install a new package, npm automatically enumerates a list of bundleDependencies, replacing my boolean value. I went searching for a configuration setting to prevent this behavior on installation of a new package, and I found rebuild-bundle. Based on the description in the documentation, I would expect that if this setting were set to false, an npm installation would not modified bundleDependencies in my package. However, I set the the rebuild-bundle configuration value to false in .npmrc, and upon package installation, bundleDependencies is still overridden by npm.

Am I understanding rebuild-bundle correctly?

I may not have configured my npmrc properly, but I configured this option on the global configuration: npm config --global set rebuild-bundle=false and added a .npmrc file in my repository and set the same setting.

ansona
  • 791
  • 4
  • 2

0 Answers0