Minimal repro: https://github.com/srmagura/graphql-repro The project was created with: ```shell npm create-vite@latest graphql-repro ``` Then I chose "Vanilla" and "TypeScript" at the prompts. Install the `graphql` npm package and add the import ```ts import * as graphql from "graphql"; ``` It produces an error like: ```ts Uncaught SyntaxError: Unexpected string (at graphql.js?v=4b27e75c:1248:113) ``` If you click on the error in the console, you'll see that `process.env.NODE_ENV` has been replaced with "development".  Let me know if you think this is a Vite issue instead, and I will report it there.