@torpor/view 0.4.10 → 0.4.11

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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @torpor/view
2
2
 
3
+ ## 0.4.11
4
+
5
+ ### Patch Changes
6
+
7
+ - 195e93b: Fix: only include $peek if used
8
+
3
9
  ## 0.4.10
4
10
 
5
11
  ### Patch Changes
package/dist/compile.cjs CHANGED
@@ -1809,7 +1809,7 @@ function buildTemplate(template, map, imports, b, options) {
1809
1809
  if (/\$run\b/.test(script)) imports.add("$run");
1810
1810
  if (/\$mount\b/.test(script)) imports.add("$mount");
1811
1811
  if (/\$unwrap\b/.test(script)) imports.add("$unwrap");
1812
- imports.add("$peek");
1812
+ if (/\$peek\b/.test(script)) imports.add("$peek");
1813
1813
  if (/\$batch\b/.test(script)) imports.add("$batch");
1814
1814
  let currentIndex = 0;
1815
1815
  let current = template.components[0];