In javascript we can use module as singleton.
//a.js
export default {str:'aaa'}
//b.js
import singleton from 'a.js'
singleton.str='bbb'
//c.js
import singleton from 'a.js'
singleton.str='ccc'
I want to use it to be the configure of my module. Is there any risk? It will always be a singleton in every module system?