Does this support loading JSON file via json-loader;
I'm using webpack, babel, bable-plugin-rewire and the sample code looks like something below. It works when importing js files but not json it seems
de.json
{}
i18n.js
import DE from './de'
....
export default class i18nObject
spec.js
import i18nObject from './i18n'
i18nObject.__Rewire__('DE', { "KEY": 'de-key' });
const i18 = new i18nObject();
// DE is still empty after this happens
i18nObject.__ResetDependency__('DE');
Does this support loading JSON file via json-loader;
I'm using webpack, babel, bable-plugin-rewire and the sample code looks like something below. It works when importing js files but not json it seems
de.json
i18n.js
spec.js