Skip to content

Update scenarios to current versions and fix scenario bugs - #5

Open
NullVoxPopuli-ai-agent wants to merge 1 commit into
NullVoxPopuli:mainfrom
NullVoxPopuli-ai-agent:update-and-fix-scenarios
Open

Update scenarios to current versions and fix scenario bugs#5
NullVoxPopuli-ai-agent wants to merge 1 commit into
NullVoxPopuli:mainfrom
NullVoxPopuli-ai-agent:update-and-fix-scenarios

Conversation

@NullVoxPopuli-ai-agent

Copy link
Copy Markdown

Refreshes the quest repro (embroider-build/embroider#1773) so it tests what it says it tests:

  • The app-auto-import-* apps were generated with --embroider, so both app flavors ran identical embroider webpack builds — the classic ember-auto-import pipeline was never actually exercised. They now use a classic app.toTree() build.
  • Bump @embroider/compat^3.9.4, @embroider/core^3.5.10, @embroider/webpack^4.1.2 (the stable-branch webpack line). The old ^3.4.3 pins now resolve @embroider/compat@4.x from main, whose compatBuild has the vite-era signature and fails with Class constructor Webpack cannot be invoked without 'new'.
  • Add ember-source as a devDependency of the libs (current babel-plugin-ember-template-compilation needs it resolvable at addon build time).
  • Fix the-test.js in both import-sync apps: the lib only has a default export, so import { theFn } was always undefined; and dependencySatisfies('@embroider/core', '*') checks the addon's own dependencies, so 'expecting broccoli' is the correct expectation in both build systems.

Current matrix on published packages: no-deps passes everywhere; template-only, glimmer-component, and import-sync fail under ember-auto-import; import-sync fails under embroider 3. All 8 apps pass with embroider-build/ember-auto-import#718 and embroider-build/embroider#2780 linked in.

🤖 Generated with Claude Code

- The app-auto-import-* apps were generated with --embroider, so both
  app flavors were running identical embroider webpack builds and the
  ember-auto-import (classic) pipeline was never actually tested. The
  app-auto-import-* apps now use a classic app.toTree() build.

- Bump @embroider/compat to ^3.9.4, @embroider/core to ^3.5.10, and
  @embroider/webpack to ^4.1.2 (the versions released from embroider's
  stable branch, which is the webpack line). The old ^3.4.3 compat
  pins now resolve @embroider/compat 4.x from main, whose compatBuild
  has the vite-era signature and fails with 'Class constructor Webpack
  cannot be invoked without new'.

- Add ember-source as a devDependency of the libs; current
  babel-plugin-ember-template-compilation needs it resolvable for
  template compilation at addon build time.

- Fix the-test.js in both import-sync apps: lib-import-sync only has a
  default export, so 'import { theFn }' was always undefined. Also,
  dependencySatisfies('@embroider/core', '*') checks the addon's own
  dependencies (which don't include @embroider/core), so the correct
  expectation is 'expecting broccoli' in both build systems.

With these fixes plus embroider-build/ember-auto-import#718 and
embroider-build/embroider#2780 linked in, all 8 scenario apps pass.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
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.

2 participants