I can’t find where I read it, but there afaik there is a difference between these two exports and how they work in ESM and tree shaking.
// option one
export const foo = 42
// option two
const foo = 42
export { foo }
I can’t find where I read it, but there afaik there is a difference between these two exports and how they work in ESM and tree shaking.
// option one
export const foo = 42
// option two
const foo = 42
export { foo }