@open-wc/dev-server-hmr
Advanced tools
Comparing version 0.1.0 to 0.1.1
# @open-wc/dev-server-wc-hmr | ||
## 0.1.1 | ||
### Patch Changes | ||
- e2f9240e: fix(dev-server-hmr): fix compatibility with scoped-elements | ||
## 0.1.0 | ||
@@ -4,0 +10,0 @@ |
{ | ||
"name": "@open-wc/dev-server-hmr", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"publishConfig": { | ||
@@ -28,2 +28,3 @@ "access": "public" | ||
"start:lit-ts": "wds --config demo/lit-element-ts/server.config.mjs", | ||
"start:storybook": "wds --config demo/storybook/server.config.mjs", | ||
"start:vanilla": "wds --config demo/vanilla/server.config.mjs", | ||
@@ -61,3 +62,3 @@ "test": "npm run test:node", | ||
"@babel/core": "^7.12.3", | ||
"@microsoft/fast-element": "^0.19.1", | ||
"@microsoft/fast-element": "^0.21.1", | ||
"@types/babel__core": "^7.1.12", | ||
@@ -70,2 +71,3 @@ "@types/babel__generator": "^7.6.2", | ||
"@web/dev-server-esbuild": "^0.2.8", | ||
"@web/dev-server-storybook": "^0.3.2", | ||
"haunted": "^4.7.1", | ||
@@ -72,0 +74,0 @@ "lit-element": "^2.4.0", |
@@ -93,5 +93,8 @@ // @ts-nocheck | ||
const key = keysForClasses.get(this.constructor); | ||
const p = proxiesForKeys.get(key); | ||
// replace the constructor with a proxy that references the latest implementation of this class | ||
this.constructor = p.currentProxy; | ||
// check if the constructor is registered | ||
if (key) { | ||
const p = proxiesForKeys.get(key); | ||
// replace the constructor with a proxy that references the latest implementation of this class | ||
this.constructor = p.currentProxy; | ||
} | ||
// replace prototype chain with a proxy to the latest prototype implementation | ||
@@ -98,0 +101,0 @@ replacePrototypesWithProxies(this); |
44966
1193
14