We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
lwc
(Follow-up to #3594 )
import plugin from '@lwc/rollup-plugin' // works import plugin from 'lwc/rollup-plugin' // throws Error due to no default export
I guess export * from 'foo' doesn't export default. We should add default exports to those packages that have htem.
export * from 'foo'
default
The text was updated successfully, but these errors were encountered:
This issue has been linked to a new work item: W-13710298
Sorry, something went wrong.
Well, there is a workaround:
import * as mod from 'lwc/rollup-plugin' console.log(mod.default)
Also due to ESM-CJS interop, there is a weird effect anyway even if we do export the default, which is that you get
{ default: theThing }
...instead of just theThing.
theThing
Maybe we should just have a breaking change where we get rid of all our default exports. They always have weird compat issues anyway (e.g. with Jest).
test(lwc): validate default exports are re-exported; fixes #3605
5b2412b
a579fcc
No branches or pull requests
(Follow-up to #3594 )
I guess
export * from 'foo'
doesn't exportdefault
. We should adddefault
exports to those packages that have htem.The text was updated successfully, but these errors were encountered: