Skip to content
New issue

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 #41

Open
TroyKomodo opened this issue Mar 25, 2023 · 0 comments · May be fixed by #42
Open

Allow for a rollup config hook #41

TroyKomodo opened this issue Mar 25, 2023 · 0 comments · May be fixed by #42

Comments

@TroyKomodo
Copy link

TroyKomodo commented Mar 25, 2023

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

adapter: adapter({
  rollupHook: (options) => {
      options.plugins.push(replace({
          'process.env.NODE_ENV': JSON.stringify('production'),
      }))
  },
}),

was enough to solve my issue

@TroyKomodo TroyKomodo linked a pull request Mar 25, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant