juxscript 1.1.136 → 1.1.137
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/dom-structure-map.json +1 -1
- package/machinery/compiler3.js +1 -1
- package/package.json +1 -1
package/dom-structure-map.json
CHANGED
package/machinery/compiler3.js
CHANGED
|
@@ -285,7 +285,7 @@ export class JuxCompiler {
|
|
|
285
285
|
let viewCode = this.removeImports(v.content).replace(/^\s*export\s+default\s+.*$/gm, '');
|
|
286
286
|
const asyncPrefix = viewCode.includes('await ') ? 'async ' : '';
|
|
287
287
|
|
|
288
|
-
//
|
|
288
|
+
// Use sanitized name in function declaration
|
|
289
289
|
entry += `\n${asyncPrefix}function ${functionName}() {\n${viewCode}\n}\n`;
|
|
290
290
|
});
|
|
291
291
|
|