Skip to content

Commit

Permalink
Fix babel config
Browse files Browse the repository at this point in the history
  • Loading branch information
youknowriad committed Mar 21, 2019
1 parent 59d079b commit ecaaf8c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
9 changes: 7 additions & 2 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
{
"presets": ["@wordpress/babel-preset-default"]
}
"presets": ["@wordpress/babel-preset-default"],
"plugins": [
[ "@babel/plugin-transform-react-jsx", {
"pragma": "createElement"
} ]
]
}
6 changes: 0 additions & 6 deletions playground/src/index.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
/**
* External dependencies
*/
import React from 'react';

window.React = React;
/**
* External dependencies
*/
Expand Down

0 comments on commit ecaaf8c

Please sign in to comment.