So, I guess that, and please correct me and let me know if I am wrong,
if the module has less than max_inlined_source_size chars,
it will be inlined hence optimized.

This package will make your code die on start up if some of your modules
cannot be inlined.

Usage

Basic usage

Please note that this package is intended to be used server side.
If used with browserify it is a no op.

Suppose that the main attribute in your package.json is index.js.
If you want that all the modules in your package have body length less
the max_inlined_source_size value, wrap your index.js this way

require('inlined')()(function(){// your index.js content// Every *require* call will throw an exception if its body lenght// is greater than *max_inlined_source_size* number of chars.})

Tuning max_inlined_source_size

Optionally, you can pass the value of the max source size which defaults
to 600. It is up to you to keep it in sync with the to the
max_inlined_source_size node flag.
For instance, if you launch your script with

In order to do tuning on this value and change it quickly to be able to
run multiple benchmarks, it also possible to set it with the
MAX_INLINED_SOURCE_SIZE environment variable.
For instance, if you launch your script with