'Exporting a destructured object possible?

I'm writing an ESmodule and have the following code:

const object = {
    key1: 'test',
    key2: 'test2',
}

export {
   ...object
}

It seems you can't export a destructured object?

Is there a workaround that would look clean?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source