Currently it is only possible to return a js object from the formatter. This breaks when you want to create a file (like a browserconfig.xml) that is not a json file.
This pull request solves the problem by only calling JSON.stringify when the return type from the formatter is an Object or Array.
Currently it is only possible to return a js object from the formatter. This breaks when you want to create a file (like a browserconfig.xml) that is not a json file.
This pull request solves the problem by only calling
JSON.stringify
when the return type from the formatter is an Object or Array.