Skip to content

ci: test application built with stimulus-bridge 4.0.2 - #10

Merged
JDCyllene merged 1 commit into
CylleneDigital:mainfrom
JDCyllene:ci/stimulus-bridge-4
Oct 21, 2026
Merged

JDCyllene merged 1 commit into
CylleneDigital:mainfrom
JDCyllene:ci/stimulus-bridge-4

Conversation

@JDCyllene

Copy link
Copy Markdown
Member

What this pull request does

Since webpack 5.112.0, the Sylius 2.1 jobs fail in "Build Sylius Test Application" (scheduled run of October 17): Cannot find module 'webpack/lib/dependencies/LoaderDependency'. That webpack release moved this internal module, which the @symfony/stimulus-bridge 3.x loader requires on load. The Sylius 2.1 test application takes the bridge in ^3.2.0 without a lockfile, and its bundles let webpack float (^5.72); Sylius 2.2 caps webpack below 5.109, so it is not affected.

@symfony/stimulus-bridge 4.0.2 takes the module factory from the compilation instead (symfony/stimulus-bridge#123). The test application merges tests/TestApplication/package.json into its own package.json before yarn install: the plugin raises the bridge to ^4.0.2 there. CLAUDE.md records it among the known pitfalls.

Points to watch

  • Tests pass (vendor/bin/phpunit, vendor/bin/behat --strict): validated by this CI; locally, the test application front build passes on Sylius 2.3 with the bridge 4.0.2
  • PHPStan and ECS are green
  • If the schema changed: a new migration is added, and sh tests/check-schema-drift.sh prints nothing (MySQL or PostgreSQL)
  • UPGRADE.md is up to date if the public contract changes (traits and interfaces, Twig hooks and functions, grid query)
  • A decision taken or reversed has its record in docs/adr/
  • No customer data, shop secrets or pre-production URLs appear in the code, the tests or this description

CI and docs only (tests/ is not in the Composer archive): nothing changes in what a shop installs, no release needed.

webpack 5.112 removed webpack/lib/dependencies/LoaderDependency, which the
@symfony/stimulus-bridge 3.x loader requires on load: the Sylius 2.1 test
application front build fails on it ("Cannot find module"). Version 4.0.2
takes the module factory from the compilation instead.

The test application merges tests/TestApplication/package.json into its own
before yarn install, so the plugin raises the bridge there.
@JDCyllene
JDCyllene requested a review from a team as a code owner October 21, 2026 14:50
@JDCyllene
JDCyllene merged commit b370d6c into CylleneDigital:main Oct 21, 2026
20 checks passed
@JDCyllene
JDCyllene deleted the ci/stimulus-bridge-4 branch October 21, 2026 15:32
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