-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
Add lit-html support #3433
Add lit-html support #3433
Conversation
Codecov Report
@@ Coverage Diff @@
## master #3433 +/- ##
==========================================
+ Coverage 37.2% 37.21% +<.01%
==========================================
Files 463 463
Lines 10242 10241 -1
Branches 894 935 +41
==========================================
Hits 3811 3811
+ Misses 5901 5865 -36
- Partials 530 565 +35
Continue to review full report at Codecov.
|
@@ -53,12 +53,14 @@ | |||
"webpack-hot-middleware": "^2.22.0" | |||
}, | |||
"devDependencies": { | |||
"lit-html": "^0.9.0", |
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.
Why do you need the "lit-html" and "polymer-webpack-loader" in devDeps ?
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.
For lit-html
, it's probably because you need a single instance of that package for instanceof TemplateResult
to pass
Adds the ability to render a story based on lit-html
What I did
Instead of returning either a
string
or aNode
from a story, now you can also return aTemplateResult
How to test
See polymer stories in the examples dir