@stacksjs/stx 0.2.107 → 0.2.108
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/dist/cli.js +385 -385
- package/dist/expressions.js +1 -1
- package/dist/pwa.js +133 -133
- package/dist/ssg.js +142 -142
- package/dist/utils.d.ts +13 -0
- package/dist/utils.js +8 -1
- package/package.json +5 -5
package/dist/expressions.js
CHANGED
|
@@ -347,7 +347,7 @@ export function processExpressions(template, context, filePath, options) {
|
|
|
347
347
|
output = maskInto(output, styleMatcher, styleBlocks, (n) => `<!--__STX_STYLE_${n}__-->`);
|
|
348
348
|
const scriptBlocks = [];
|
|
349
349
|
output = maskInto(output, matchScriptElement, scriptBlocks, (n) => `<!--__STX_SCRIPT_EXPR_${n}__-->`);
|
|
350
|
-
const hasSignals = options?.forceSignals === !0 || usesSignalsInScript(template);
|
|
350
|
+
const hasSignals = options?.forceSignals === !0 || context?.__stx_force_signals === !0 || usesSignalsInScript(template);
|
|
351
351
|
output = output.replace(/\{\{\{([\s\S]*?)\}\}\}/g, (match, expr, offset) => {
|
|
352
352
|
try {
|
|
353
353
|
const value = evaluateExpression(expr, context);
|