Skip to content

Add config.json bundle option to build process#42

Merged
Cleboost merged 2 commits intomasterfrom
feat/config-bundle-option-9276831806209071587
Mar 26, 2026
Merged

Add config.json bundle option to build process#42
Cleboost merged 2 commits intomasterfrom
feat/config-bundle-option-9276831806209071587

Conversation

@Cleboost
Copy link
Owner

This PR adds support for controlling whether config.json is bundled (inlined) into the production build or provided as an external file in the dist/ directory.

By default, config.json is now copied to the dist/ folder and loaded at runtime. This allows users to modify their configuration without rebuilding the bot. The previous behavior of inlining the configuration can still be enabled by setting experimental.bundle: true in djs.config.ts.

Key changes:

  • Updated @djs-core/utils types to include the bundle flag.
  • Modified @djs-core/dev build command to copy config.json and generate appropriate loading code.
  • Verified that both bundling and external loading work as expected in the app workspace.

Fixes #41


PR created automatically by Jules for task 9276831806209071587 started by @Cleboost

- Add `experimental.bundle` option to `Config` interface.
- Default `bundle` to `false`, causing `config.json` to be copied to `dist/` and loaded at runtime using `Bun.file`.
- Support `bundle: true` to inline `config.json` into the JS bundle as before.
- Update generated entry point to handle both loading mechanisms.

Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
@google-labs-jules
Copy link
Contributor

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

@google-labs-jules google-labs-jules bot mentioned this pull request Mar 25, 2026
@Cleboost Cleboost merged commit e136a99 into master Mar 26, 2026
1 check passed
@Cleboost Cleboost deleted the feat/config-bundle-option-9276831806209071587 branch March 26, 2026 09:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

config.json bundle

1 participant