-
Notifications
You must be signed in to change notification settings - Fork 393
New issue
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
[SSR v2] Fix unused imports from '@lwc/ssr-runtime'
#4793
Comments
This issue has been linked to a new work item: W-17152250 |
'@lwc/ssr-runtime'
@nolanlawson aren't the decorators always compiled away? |
@cardoso Rollup removes the unused imports in our unit tests, yeah. But on-core, these warnings turn into errors because we're much stricter. |
@nolanlawson I think that part I understand. I'm actually wondering if the fix here is simply removing the decorator imports during ssr. Or is there a case they're referenced at runtime? |
Well some of them haven't been implemented yet. 🙂 See #4807 for example. |
In core, this Rollup warning is treated as an error:
This happens because sometimes we are sloppy about doing e.g.:
... in the output
.js
files from the@lwc/ssr-compiler
, even thoughapi
may be unused.We should clean this up and ensure that all of our imports are actually used.
The text was updated successfully, but these errors were encountered: