feat(graphiql): add graphiql-console package foundation #6578
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.

WHY are these changes introduced?
This PR establishes the foundation for migrating GraphiQL from a template-based approach to a standalone React 18 package. This is the first PR in an 8-PR stack that modernizes our GraphiQL implementation.
Context: The current GraphiQL implementation uses Rails templates which makes it harder to maintain, test, and iterate on. By creating a standalone React 18 package, we can:
WHAT is this pull request doing?
This PR creates the complete foundation for the
@shopify/graphiql-consolepackage with all build infrastructure and tooling needed for development.Key Changes:
app/assets/graphiqldirectory@/for src,tests/for tests)Appcomponent with comprehensive tests demonstrating the setup worksFiles Added:
packages/graphiql-console/package.json- Dependencies and scriptspackages/graphiql-console/vite.config.ts- Build and test configurationpackages/graphiql-console/project.json- NX build targetspackages/graphiql-console/tsconfig.*.json- TypeScript configurationpackages/graphiql-console/src/App.tsx- Minimal starter componentpackages/graphiql-console/tests/setup.ts- Test infrastructureCI Fixes Applied
Issue 1: Monaco Editor Plugin Import
createRequireto properly load the CommonJS plugin in ESM contextIssue 2: Vite Version Mismatch
Issue 3: Unused Dependencies
How to test your changes?
All CI checks pass: build, test, lint, type-check, and knip.
Measuring impact
Checklist