Skip to content

Commit

Permalink
Fix broken import in .mjs.
Browse files Browse the repository at this point in the history
  • Loading branch information
krasivyy3954 committed Jan 29, 2018
1 parent e2ac713 commit d364983
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
4 changes: 4 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# apollo-upload-server changelog

## Next

* Temporary solution for importing CommonJS in `.mjs`, fixing reopened [#40](https://github.com/jaydenseric/apollo-upload-server/issues/40).

## 4.0.1

* Correct imports for vanilla Node.js `--experimental-modules` and `.mjs` support, fixing [#40](https://github.com/jaydenseric/apollo-upload-server/issues/40).
Expand Down
4 changes: 3 additions & 1 deletion src/types.mjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import * as graphql from 'graphql'
import graphqlDefault, * as graphqlExports from 'graphql'

const graphql = graphqlDefault || graphqlExports

export const GraphQLUpload = new graphql.GraphQLScalarType({
name: 'Upload',
Expand Down

0 comments on commit d364983

Please sign in to comment.