okikio / okikio/bundlejs

`config` query string sometimes removed after clicking "Build" button

Open
#85 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
915
Forks
19
PR merge metrics
No merged PRs in 30d

Description

Description:

When clicking the Build button, the config query string in the URL is sometimes removed unexpectedly. This doesn’t happen consistently—I'd estimate it occurs around 50% of the time.

The issue seems to occur more reliably when:

  • The URL includes both config and bundle query strings.
  • The Build button is clicked while the initial auto-build (triggered on page load) is still in progress.

I've attached a video to demonstrate the behavior. Please watch the Chrome address bar closely after clicking the Build button.

Here’s an example link to reproduce the issue: https://bundlejs.com/?q=%40szhsin%2Freact-accordion&treeshake=%5B*%5D&config=%7B%22esbuild%22%3A%7B%22external%22%3A%5B%22react%22%2C%22react-dom%22%5D%7D%7D&bundle

Impact:

Because the config query string is removed, the bundle size calculation is incorrect. For example:

  • With the config query string, the bundle size is 2.92 kB (gzip)
  • Without the config query string, the bundle size jumps to 6.11 kB (gzip)
Expected Behavior:

The config query string should remain in the URL after clicking the Build button.

https://github.com/user-attachments/assets/6954a27d-fe53-4f32-80e9-feae0f13f882

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the issue with the example URL and inspect the Build button flow while the initial auto-build is still running. Trace how the config and bundle query strings are handled after the click. Done means config remains in the URL and the bundle size still reflects that configuration.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend, web-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.