tc39 / proposal-export-default-from

Proposal to add `export v from "mod";` to ECMAScript.
https://tc39.github.io/proposal-export-default-from/
307 stars 12 forks source link

Can `export` statement override `export *` identifier? #11

Closed JounQin closed 3 years ago

JounQin commented 3 years ago

Is the following valid?

export * from 'ts-essentials' // it contains `noop`
export const noop = {
  console.log('my nopp')
}
ljharb commented 3 years ago

I'd expect it to be perfectly valid.

JounQin commented 3 years ago

It seems not mentioned in README.

Related https://github.com/rollup/rollup/issues/4049#issuecomment-830560892

ljharb commented 3 years ago

That's unrelated to this proposal tho; it's the way it already works.

JounQin commented 3 years ago

Oh, thanks for your answer if it's not related to this proposal.