Skip to content

fix: bundle core.js in the deploy (live site was 404'ing it) - #4

Merged
joak0068 merged 1 commit into
mainfrom
fix/deploy-bundle-core-js
Jun 25, 2026
Merged

fix: bundle core.js in the deploy (live site was 404'ing it)#4
joak0068 merged 1 commit into
mainfrom
fix/deploy-bundle-core-js

Conversation

@joak0068

Copy link
Copy Markdown
Collaborator

What this changes

When core.js was added, index.html started loading it but the Pages deploy (pages.yml) and the release zip (web.yml) copy a hardcoded file list that didn't include it. The deployed bundle therefore 404'd on core.js and app.js crashed at the first call (rotFor is not defined), leaving pods unpositioned and all buttons dead.

  • Add core.js (and the previously-omitted dfu.js) to the deploy + release bundles.
  • Add a guard to the deploy: every <script src> in index.html must exist in _site/, or the build fails. This catches a missing bundled asset that the repo-level CI checks (parse, Prettier, ESLint, unit tests) can't — they validate the source tree, not the deployed set.

Checklist

  • If a control changed, the CONFIG block matches spore/docs/MIDI_PROTOCOL.md
  • Tested in Chrome/Edge (note if hardware was/wasn't connected)

When core.js was added, index.html started loading it but the Pages deploy (pages.yml) and
the release zip (web.yml) copy a hardcoded file list that didn't include it. The deployed
bundle therefore 404'd on core.js and app.js crashed at the first call (rotFor is not
defined), leaving pods unpositioned and all buttons dead.

- Add core.js (and the previously-omitted dfu.js) to the deploy + release bundles.
- Add a guard to the deploy: every <script src> in index.html must exist in _site/, or the
  build fails. This catches a missing bundled asset that the repo-level CI checks (parse,
  Prettier, ESLint, unit tests) can't — they validate the source tree, not the deployed set.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@joak0068
joak0068 merged commit 1657416 into main Jun 25, 2026
2 checks passed
@joak0068
joak0068 deleted the fix/deploy-bundle-core-js branch June 25, 2026 12:44
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.

1 participant