Repository navigation
Transpile src for the website and node builds too - #4
Merged
Merged
Conversation
webpack 4's parser predates nullish coalescing, and src/packager/packager.js uses it in the CSP meta template. Only makeScaffolding configured babel-loader, so makeWebsite -- which reaches packager.js through src/p4/Downloads.svelte -- parsed it raw and died with "Module parse failed: Unexpected token (1235:30)". master has been red since 2026-09-08 for this reason. The rule is now a shared makeJavascriptRule() used by all three configs. makeNode had the same gap and the same entry path into packager.js, so it gets the rule as well; it only runs under BUILD_MODE=node, which CI does not exercise. All three CI steps pass locally: npm run build, npm test (16 suites, 48 passed) and npm run build-standalone-prod. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Deploying packagermistwarp with
|
| Latest commit: |
cedc14f
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://d56b39d9.packagermistwarp.pages.dev |
| Branch Preview URL: | https://fix-website-babel-parse.packagermistwarp.pages.dev |
This was referenced Sep 21, 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.
The
Buildworkflow has failed onmastersince 2026-09-08 with:src/packager/packager.jsuses??in the CSP meta template, and webpack 4'sparser predates nullish coalescing. Only
makeScaffoldingconfiguredbabel-loader —
makeWebsitehad just the png/svg and svelte rules, so themodule that reaches
packager.jsthroughsrc/p4/Downloads.sveltewas parsedraw.
Changes
makeJavascriptRule(), unchangedfrom the one
makeScaffoldingalready used.makeWebsitegets the rule. This is the failure CI hits.makeNodegets it too. It has the same gap and the same entry path intopackager.jsviasrc/packager/node/export.js, so it would break the sameway; it only runs under
BUILD_MODE=node, which CI does not exercise.Testing
All three steps the
Buildworkflow runs, locally on Node 24:npm run build— succeeds (fails onmasterin the same checkout)npm test— 16 suites, 48 passed, 1 skippednpm run build-standalone-prod— succeeds, emitsdist/standalone.htmlThis unblocks #1, whose red
buildcheck is this failureinherited from
masterrather than anything in that change.