astro-pages-hmr
Advanced tools
Comparing version 0.1.0 to 0.1.1
{ | ||
"name": "astro-pages-hmr", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"type": "module", | ||
@@ -22,2 +22,3 @@ "author": "Bjorn Lu", | ||
"astro", | ||
"astro-integration", | ||
"hmr" | ||
@@ -24,0 +25,0 @@ ], |
@@ -40,3 +40,3 @@ # astro-pages-hmr | ||
### How it works | ||
## How it works | ||
@@ -48,6 +48,6 @@ The integration uses [micromorph](https://github.com/natemoo-re/micromorph) to update the current HTML with the incoming new HTML via `fetch`. `micromorph` is bundled into a client HMR runtime that is injected into the page. | ||
- The `<head>` tag has changed | ||
- The `<scripts>` tags have changed | ||
- The `<script>` tags have changed | ||
- The attributes passed to Island components have changed | ||
### Limitations | ||
## Limitations | ||
@@ -54,0 +54,0 @@ - Dynamically injected elements in the HTML may interfere with morphing as the incoming new HTML will likely not contain that element, so they will be deleted from the DOM even if needed. In which case, make sure your script is able to handle those changes and re-inject them if needed. <!-- Introduce a new event? Borrow View Transition event? --> |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
14022