Skip to content

Compressor: Comparison

CezarCretu edited this page Sep 25, 2014 · 1 revision

##Bundler

A bundler that parses the bundles you defined in the configuration files, concatenates the scripts and then minifies them.

This bundler does not:

  • create define modules for you
  • automatically use the created bundles
  • parse the dependency tree so that it can include the dependencies you didn't explicitly provide

##AutoBundler

An experimental version of a new bundler that parses the scripts you specify in your bundles, parses them trying to find the dependencies you didn't specify, creates define() modules out of your shim entries and names your anonymous define modules. It basically does everything that the classic Bundler doesn't at the cost of developers losing control over most of the process.

Please note that in order for it to be able to use the bundles at runtime, it generates a configName.override.json file for each configuration file. The loadOverrides option must also be set to true when you render the require entry point (it is true by default). If, for some reason, it can't read those files, it will not be able to automatically use the bundles it created.