Skip to content

Commit

Permalink
op-reg and response-cache: only export in one way
Browse files Browse the repository at this point in the history
For some reason, these plugins defined their exports both using `export
default` and `module.exports =`. In practice this means that the latter
overrides the former or something, which in some contexts causes
problems (see #5526).
  • Loading branch information
glasser committed Jul 23, 2021
1 parent 207fae5 commit bebb018
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
import plugin from './ApolloServerPluginOperationRegistry';
export default plugin;
module.exports = plugin;
1 change: 0 additions & 1 deletion packages/apollo-server-plugin-response-cache/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
import plugin from './ApolloServerPluginResponseCache';
export default plugin;
module.exports = plugin;

0 comments on commit bebb018

Please sign in to comment.