In particular, if there is no comment or content above the requirejs.config call, it calculates the start value off by one as the preamble incorrectly includes as \n for zero line requirejs.config calls.
Found by @robdodson, in yeoman/grunt-bower-requirejs#36
Fixes #476, correctly calculate node range when it occurs on first line.
Fixed in master, can be tested via the master link: https://raw.github.com/jrburke/r.js/master/dist/r.js
This still doesn't work well.
and finally, given
which is the only variation that works.
I was trying to use mainConfigFile with a file generated from JSON, so it had no line breaks.
Putting it 2.1.9 bucket for evaluation.
Fixes #476, parse.nodeToString handle single line configs correctly