Repository navigation
feat: workspace JS builds use .fastedge/build-config.js - #47
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
The focused build-selection change preserves existing fallbacks, has targeted regression coverage, and has no unresolved review findings.
No open issues 🎉
What changed in this PR
Adds config-based JavaScript/TypeScript workspace builds so the debugger includes configured entry points, static assets, and Wasm components.
Changes:
- Uses
.fastedge/build-config.jsfor workspace builds with SDK 2.7.0 or later, preserving legacy and file-mode builds. - Adds a workspace-build hint after file-mode failures when a config exists.
- Adds three regression tests and updates user-facing documentation.
| File | Description |
|---|---|
| src/compiler/jsBuild.ts | Selects config-based builds by SDK version and adds failure guidance. |
| src/compiler/compilerSpawn.test.ts | Tests config builds, older-SDK fallback, and file-mode behavior. |
| README.md | Explains workspace builds and when to use them. |
| package.json | Updates the entrypoint setting description. |
| context/CHANGELOG.md | Records the behavior change and validation. |
Review effort: Balanced
qrdl
approved these changes
Oct 24, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Workspace builds (
"entrypoint": "package") of a JS/TS project with.fastedge/build-config.jsand@gcoredev/fastedge-sdk-js2.7.0 or later now runfastedge-build --config <config> --output .fastedge-debug/app.wasm, so the config's entry point, static assets and Wasm components (2.7.0 component imports) are used.mainisn't needed in that case.<entry> <output>build.entrypointdescription and README updated.compilerSpawn.test.ts.Checked end to end: the workspace build produced
.fastedge-debug/app.wasmfor the SDK's component-imports example; file mode showed the hint.