diff --git a/docs/blog/announcing-open-web-components/index.md b/docs/blog/announcing-open-web-components/index.md
index 66a78e66..959ae6a7 100644
--- a/docs/blog/announcing-open-web-components/index.md
+++ b/docs/blog/announcing-open-web-components/index.md
@@ -168,9 +168,9 @@ We'd love to hear any feedback or questions you might have. You can reach us at:
You can join the Polymer slack by visiting [this link](https://join.slack.com/t/polymer/shared_invite/enQtNTAzNzg3NjU4ODM4LTkzZGVlOGIxMmNiMjMzZDM1YzYyMzdiYTk0YjQyOWZhZTMwN2RlNjM5ZDFmZjMxZWRjMWViMDA1MjNiYWFhZWM).
- You can find our recommendations and documentation over at: [open-wc](https://open-wc.org).
-
-You can also find some of us on twitter: [BennyP](https://twitter.com/PowersBenny), [daKmoR](https://twitter.com/daKmoR), [passle](https://twitter.com/passle_)
-
-
-
-🚽 Made with love by open-wc.
+ + You can also find some of us on twitter: [BennyP](https://twitter.com/PowersBenny), [daKmoR](https://twitter.com/daKmoR), [passle](https://twitter.com/passle_) + ++ 🚽 Made with love by open-wc.
diff --git a/docs/docs/development/hot-module-replacement.md b/docs/docs/development/hot-module-replacement.md index 93daa786..90eda430 100644 --- a/docs/docs/development/hot-module-replacement.md +++ b/docs/docs/development/hot-module-replacement.md @@ -2,7 +2,7 @@ > This project is currently experimental. Try it out and let us know what you think! -[@web/dev-server](https://modern-web.dev/docs/dev-server/overview/) plugin for "hot module replacement" or "fast refresh" with web components. +[@web/dev-server](https://modern-web.dev/docs/dev-server/overview/) plugin for "hot module replacement" or "fast refresh" with web components and es modules. Keeps track of web component definitions in your code, and updates them at runtime on change. This is faster than a full page reload and preserves the page's state. @@ -10,7 +10,7 @@ HMR requires the web component base class to implement a `hotReplaceCallback`. ## Installation -> Make sure you have [@web/dev-server](https://modern-web.dev/docs/dev-server/overview/) installed. +First install [@web/dev-server](https://modern-web.dev/docs/dev-server/overview/) if you don't already have this installed in your project. Install the package: @@ -32,7 +32,7 @@ export default { }; ``` -Pick one of the presets below if needed, then start the dev server like normal. There are no code modifications needed. If a component or one of it's dependencies is changed, the component is replaced. Otherwise the page is reloaded. +Pick one of the presets below if needed, then start the dev server like normal. You don't need to make any changes to your code. If a component or one of it's dependencies is changed, the component is replaced. Otherwise the page is reloaded. > Make sure to start the dev server without `watch` mode, as this always forces a page reload on change. @@ -207,6 +207,12 @@ class MyElement extends HTMLElement { } ``` +## HMR implementation + +This plugin currently only works for web dev server. The approach should be compatible with other ESM-HMR implementations in other dev servers. This is something that can be explored. + +Compatibility with non es modules HMR, such as webpack, is not currently a goal. + ### Static callback The static `hotReplaceCallback` callback is called once for each replacement on the initial class of the component. This is where you can copy over properties from the new class to the existing class. diff --git a/docs/docs/linting/eslint-plugin-lit-a11y/overview.md b/docs/docs/linting/eslint-plugin-lit-a11y/overview.md index c619f9fd..677c6c7d 100644 --- a/docs/docs/linting/eslint-plugin-lit-a11y/overview.md +++ b/docs/docs/linting/eslint-plugin-lit-a11y/overview.md @@ -53,7 +53,7 @@ You may also extend the recommended configuration like so: By default, any tagged template literal that starts with `html` is linted. Example: ```js -html`