Skip to content

Commit

Permalink
Valid Node.js ESM deep imports.
Browse files Browse the repository at this point in the history
Note that the injected Babel helper imports still require file extensions to work in Node.js, see: babel/babel#10549 (comment)
  • Loading branch information
jaydenseric committed Dec 6, 2019
1 parent 9e41129 commit 8d204ac
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/server/ssr.mjs
@@ -1,4 +1,4 @@
import ReactDOMServer from 'react-dom/server'
import ReactDOMServer from 'react-dom/server.node.js'
import { GraphQL } from '../universal/GraphQL.mjs'

/**
Expand Down
2 changes: 1 addition & 1 deletion src/test/GraphQL.mjs
@@ -1,4 +1,4 @@
import 'cross-fetch/polyfill'
import 'cross-fetch/dist/node-polyfill.js'
import { GraphQLInt } from 'graphql'
import Koa from 'koa'
import t from 'tap'
Expand Down
2 changes: 1 addition & 1 deletion src/test/ssr.mjs
@@ -1,4 +1,4 @@
import 'cross-fetch/polyfill'
import 'cross-fetch/dist/node-polyfill.js'
import React from 'react'
import t from 'tap'
import { ssr } from '../server/ssr.mjs'
Expand Down
4 changes: 2 additions & 2 deletions src/test/useGraphQL.mjs
@@ -1,6 +1,6 @@
import 'cross-fetch/polyfill'
import 'cross-fetch/dist/node-polyfill.js'
import React from 'react'
import ReactDOMServer from 'react-dom/server'
import ReactDOMServer from 'react-dom/server.node.js'
import ReactTestRenderer from 'react-test-renderer'
import t from 'tap'
import { GraphQL } from '../universal/GraphQL.mjs'
Expand Down

0 comments on commit 8d204ac

Please sign in to comment.