I want to use import in my file, but I cant find the way to replace my require properly
See the code I want to replace
const object = { first: require('../example/first.json').EXL.PUBLIC, second: require('../example/second.json').EXL.PUBLIC, third: require('../example/third.json').EXL.PUBLIC } First question is how can I import those stuff directly to an object? Just like I did with require?
The second one, how can I use import with the .EXL.PUBLIC command? To directly import the right branch of the json file?