Repository navigation
ci(strapi): guard admin singleton deps and design-system bundle - #26969
Closed
innerdvations wants to merge 1 commit into
Closed
innerdvations wants to merge 1 commit into
innerdvations wants to merge 1 commit into
Conversation
Extend admin Vite dedupe/optimizeDeps for CodeMirror, audit installed design-system dist in unit tests, and add JSON field e2e smoke coverage.
|
Contributor
Author
|
Superseded by #27064 |
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.
Summary
resolve.dedupeandoptimizeDeps.includewith CodeMirror singleton modules (@codemirror/state,@codemirror/view,@uiw/react-codemirror) — belt-and-suspenders alongside the design-system bundle fix.@strapi/design-systemdist for inlined singleton markers and missing external imports (mirrors design-systembundle-contract.config.json).Why is it needed?
#26951 — admin crashes when
@strapi/design-systeminlines@codemirror/state. Strapi-side dedupe and a dist audit catch regressions even when the bug originates upstream; the e2e test guards the JSON field UX path.How to test it?
yarn workspace @strapi/strapi test:unit --testPathPattern="admin-vite-aliases|design-system-bundle-contract" yarn test:e2e --domains content-manager -- tests/e2e/tests/content-manager/edit-view/json-input-edit-view.spec.tsMerge order
Draft — unit test is expected to fail until
@strapi/design-systemis bumped to a release that includes strapi/design-system#2034 (externalized CodeMirror / react-virtual in dist).Suggested sequence:
@strapi/design-systemin this monorepoRelated issue(s)/PR(s)