Skip to content

Commit

Permalink
fix: Can't resolve 'react/jsx-runtime.js' (#250)
Browse files Browse the repository at this point in the history
  • Loading branch information
jakejarvis authored Mar 25, 2022
1 parent e1078a8 commit 28d667f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export default [
dir: './dist',
format: 'es',
},
external: ['react', '@mdx-js/react', 'react/jsx-runtime.js'],
external: ['react', '@mdx-js/react', 'react/jsx-runtime'],
plugins: [
ts({
tsconfig: './tsconfig.json',
Expand Down
2 changes: 1 addition & 1 deletion src/index.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import './idle-callback-polyfill'
import React, { useEffect, useState, useMemo } from 'react'
import * as runtime from 'react/jsx-runtime.js'
import * as runtime from 'react/jsx-runtime'
import * as mdx from '@mdx-js/react'
import { MDXRemoteSerializeResult } from './types'

Expand Down

0 comments on commit 28d667f

Please sign in to comment.