Skip to content

Commit

Permalink
ignore external babel config files for internal transform
Browse files Browse the repository at this point in the history
  • Loading branch information
jescalan committed May 1, 2020
1 parent 91dab73 commit 286ea9b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions render-to-string.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,13 @@ import { mdx } from '@mdx-js/react'
// this one is for immediate evaluation so we can renderToString below
transformAsync(code, {
presets: [presetReact, presetEnv],
configFile: false,
}),
// this one is for the browser to eval and rehydrate, later
transformAsync(code, {
presets: [presetReact, presetEnv],
plugins: [pluginBrowser],
configFile: false,
}),
])
})
Expand Down

0 comments on commit 286ea9b

Please sign in to comment.