We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow for a rollup config hook so we can change the rollup config.
I needed this feature because graphql.js seems to export esm with process.env.NODE_ENV checks. So simply adding
graphql.js
process.env.NODE_ENV
adapter: adapter({ rollupHook: (options) => { options.plugins.push(replace({ 'process.env.NODE_ENV': JSON.stringify('production'), })) }, }),
was enough to solve my issue
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Allow for a rollup config hook so we can change the rollup config.
I needed this feature because
graphql.js
seems to export esm withprocess.env.NODE_ENV
checks. So simply addingwas enough to solve my issue
The text was updated successfully, but these errors were encountered: