keystone build command: Impossible to bundle all files using custom esbuild config

Open
#9,384 8 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
graphql, node.js, typescript
Domain
build-system

Research direction

Reproduce the build from the linked minimal repository, focusing on esbuild.keystone.ts and the GitHub Actions output. Compare the custom configuration with the default Keystone build behavior; done means the project builds successfully while bundling all dependencies.

Written by the indexing model from the issue text.

Description

Steps to reproduce:
  • initialize keystone project
  • add esbuild.keystone.ts file to enable custom esbuild
  • inside esbuild.keystone.ts remove default plugins configuration to bundle all the dependencies
Expected:

it builds the project

Context:

Minimal repository:
https://github.com/kamilbiela/keystone-graphql-issue

Custom esbuild file:
https://github.com/kamilbiela/keystone-graphql-issue/blob/main/esbuild.keystone.ts

Github runner action output:
https://github.com/kamilbiela/keystone-graphql-issue/actions/runs/11610130875/job/32328818149

Am I doing something wrong here? I really would like to bundle all the dependencies because my original setup uses a mono repo, and this would greatly simplify the whole build and deploy pipeline.

Thank you for the help :)

Dominant language
TypeScript
Stars
10k
Forks
1.3k
Avg merge
1d 12h
Merged PRs (30d)
38

Getting set up

Open in Codespaces

Starts the project's dev container in your browser, under your own GitHub account.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from keystonejs/keystone

All issues in keystonejs/keystone

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.