-
Notifications
You must be signed in to change notification settings - Fork 402
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
feat(rollup-plugin): add stylesheetConfig to rollup-plugin options #921
feat(rollup-plugin): add stylesheetConfig to rollup-plugin options #921
Conversation
Thanks for the contribution! It looks like @nrobertdehault is an internal user so signing the CLA is not required. However, we need to confirm this. |
return ( | ||
"\n" + | ||
(nativeShadow | ||
? ":host {color: var(--lwc-my-color);}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This snippet has not been updated? The CSS variable has not been resolved from myCssResolver
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, done.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any idea why we don't use Jest snapshots here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Jest snapshot works great for HTML and javascript object. However, I find it cumbersome to use with javascript code since it's hard to spot a syntax error.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@pmdartus This snippet use the default resolver i.e. current behaviour, see expected_default_config_simple_app_css_resolver.js below for the one using a custom resolver.
Benchmark resultsBase commit: |
@nrobertdehault you've been added to the Salesforce org, once you've accepted the invitation you can refresh this pull request to clear the CLA check |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If PM is happy with the test LGTM
Thanks, @nrobertdehault for the PR. |
Details
Add
stylesheetConfig
option to @lwc/rollup-plugin.Fixes #920.
Does this PR introduce a breaking change?