ember-vite-hmr 1.4.9 → 1.4.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -169,9 +169,11 @@ class HotAstProcessor {
169
169
  return;
170
170
  if (!original)
171
171
  return;
172
- const param = glimmer.builders.path(`${importVar}.${original}`);
173
- parent.params.splice(0, 1, param);
174
- importBindings.add(original);
172
+ if (findImport(original)) {
173
+ const param = glimmer.builders.path(`${importVar}.${original}`);
174
+ parent.params.splice(0, 1, param);
175
+ importBindings.add(original);
176
+ }
175
177
  return;
176
178
  }
177
179
  if (importVar) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ember-vite-hmr",
3
- "version": "1.4.9",
3
+ "version": "1.4.10",
4
4
  "keywords": [
5
5
  "ember-addon"
6
6
  ],