new `monaco-graphql` test counts number of modules before tree shaking is complete
- Dominant language
- TypeScript
- Stars
- 16.9k
- Forks
- 1.9k
- Avg merge
- 22h 45m
- Merged PRs (30d)
- 70
Description
With #3022, a contributor is adding a single file to one of the libraries used by the example, but the test of stdout fails, even though her added method is not in the resulting bundle

when running an unminified build of `example-monaco-graphql-react-vite`, the number of modules transformed is pre-tree shaking:
> ✓ 1093 modules transformed.
the expected method from `@graphiql/toolkit` is present:

whereas her added method is not found in the bundle

this means that testing for the number of modules transformed is counting modules before the final tree shaking, and not indicating what we think it indicates
FWIW: (this is with `build: { minify: false }` and `vite build`
I suspect that the number of modules transformed figure comes from esbuild, and rollup then performs the final pass of tree shaking
Contributor guide
Assessment
This issue has not been assessed yet.