Say I have a module (./my-module.js) that has an object which should be its return value:
./my-module.js
let values = { a: 1, b: 2, c: 3 } // \"export values\
I just had need to do this for a config file.
var config = { x: "CHANGE_ME", y: "CHANGE_ME", z: "CHANGE_ME" } export default config;
You can do it like this
import { default as config } from "./config"; console.log(config.x); // CHANGE_ME
This is using Typescript mind you.