chocola 1.1.7 → 1.1.9

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/compiler/index.js CHANGED
@@ -109,7 +109,7 @@ export default async function runtime(__rootdir) {
109
109
  throwError("Index page must have an " + chalk.blue("<app>") + " element");
110
110
  }
111
111
 
112
- const appElements = Array.from(appContainer.children);
112
+ const appElements = Array.from(appContainer.querySelectorAll('*'));
113
113
 
114
114
  let runtimeChunks = [];
115
115
  let runtimeScript = "";
@@ -129,6 +129,7 @@ export default async function runtime(__rootdir) {
129
129
  }
130
130
 
131
131
  const instance = loadedComponents.get(compName);
132
+ if (!instance || instance === undefined) return;
132
133
  if (instance && instance.body) {
133
134
  let body = instance.body;
134
135
  body = body.replace(/\$\{ctx\.(\w+)\}/g, (_, key) => ctx[key] || "");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "chocola",
3
- "version": "1.1.7",
3
+ "version": "1.1.9",
4
4
  "description": "Chocola pipeline for web apps.",
5
5
  "keywords": [
6
6
  "web",