• Yes, in the unminified code it's a total waste of resources, but the idea is that 95% of users will be using the minified module as-is, so for them it's vital that it's efficient.

    The unminified version will at least be easy to use and add things to (after all the source is easily available) - it just means you can't extend it as-is very easily.

    It's a shame I can't do:

    ifndef MINIFIED
    exports.CONFIG = CONFIG;
    endif
    

    It'd let you develop stuff with the unminified module if you wanted it, while still allowing a compact minified version.

About

Avatar for Gordon @Gordon started