// fetch request
const colors = fetch('https://raw.githubusercontent.com/mdn/js-examples/master/module-examples/top-level-await/data/colors.json')
	.then(response => response.json());

export default await colors;
// fetch request
const colors = fetch('https://mdn.github.io/js-examples/module-examples/top-level-await/data/colors.json')
	.then(response => response.json());

export default await colors;

Update getColors.js