Skip to content

Commit

Permalink
Export the hmr plugin directly
Browse files Browse the repository at this point in the history
Summary: This will allow to configure the HMR plugin directly from `.babelrc` again, instead of having to create a bridge file: https://github.com/rafeca/metro-sample-app/blob/master/metro-babel7-plugin-react-transform.js#L3

Reviewed By: davidaurelio

Differential Revision: D7707314

fbshipit-source-id: 4c5612e1e5d27874807f2dce50d99ec0f6354bbc
  • Loading branch information
rafeca authored and facebook-github-bot committed Apr 20, 2018
1 parent 9bbe736 commit cf1569c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion babel-preset/configs/hmr.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ module.exports = function(options, filename) {
return {
plugins: [
[
require('metro-babel7-plugin-react-transform').default,
require('metro-babel7-plugin-react-transform'),
{
transforms: [{
transform: transform,
Expand Down

0 comments on commit cf1569c

Please sign in to comment.