You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Export globalVarsNames, globalDataNames, esbuildSettingsNames,
markdownItSettingsNames, templateSuffixes from identify-pages.js and
import them in index.js — eliminates duplicated (and nodeHasTS-unaware)
constant definitions in the watch handler
- Add MAX_CONCURRENCY to index.js (consistent with build-pages/index.js)
and use it in all three buildWatchMaps pMap calls instead of hardcoded 8
- findDepsOf now console.warn on failure instead of silently returning []
- Fix resolveVars JSDoc return type: always returns Promise<object>, not
Promise<object|function>; remove stale type cast in buildWatchMaps
- Merge BuildPagesOpts into DomStackOpts (pageFilterPaths,
templateFilterPaths); drop the separate 5th buildPagesOpts parameter
from buildPages/buildPagesDirect — worker.js now destructures opts
- WorkerBuildStepResult is now a standalone typedef instead of
Omit<PageBuildStepResult,'errors'> & {...}
- Fix build-esbuild non-watch return to use extendedBuildOpts not buildOpts
- Remove debug console.log('hello world!') from js-page/client.js example
- Fix missing comma in .claude/settings.local.json
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: lib/build-pages/resolve-vars.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@
5
5
* @param {string} [params.varsPath] - Path to the file containing the variables.
6
6
* @param {object} [params.resolveVars] - Any variables you want passed to the reolveFunction.
7
7
* @param {string} [params.key='default'] - The key to extract from the imported module. Default: 'default'
8
-
* @returns {Promise<object|function>} - Returns the resolved variables. If the imported variable is a function, it executes and returns its result. Otherwise, it returns the variable directly.
8
+
* @returns {Promise<object>} - Returns the resolved variables. If the imported variable is a function, it executes and returns its result. Otherwise, it returns the variable directly.
0 commit comments