Closed atsu85 closed 8 years ago
@ahmedshuhel We should try to maintain the same formatting...
@EisenbergEffect @atsu85 Ultimately, we are using JSON.stringify()
to recreate the config file. I don't know if there is any way to tap into that function to change formatting. I will look into it. If that does not work we may have the change the whole implementation.
@ahmedshuhel We should get in touch with @guybedford and ask why the serialization is that way. If he's using some 3rd party library to do that, we should use the same lib. But if that's somehow unintended, maybe we can all just use the standard stringify api.
He is using something he wrote in jspm
. I believe there is no third party library involved. I will raise an issue in jspm.
Here is the issue I raised. https://github.com/jspm/jspm-cli/issues/1407
The issue is fixed on the development
branch. Will be included in the next release.
Problem
bundler formats config.js differently compared to jspm install or update - git history is screwed. #54
Differences:
1) JSPM doesn't quote top-level keys in config. Result after
jspm update
vs result after
gulp bundle
Suggestion
It would be nice if this format could be configured, so that git history would remain readable (without too much effort)