Skip to content

Commit

Permalink
Add babel macros support
Browse files Browse the repository at this point in the history
  • Loading branch information
zackify committed Oct 12, 2018
1 parent 7a31b03 commit de960bf
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 16 deletions.
1 change: 1 addition & 0 deletions config/babel-options.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ module.exports = {
presets: [[require.resolve('babel-preset-env'), { useBuiltIns: 'entry' }]],
plugins: [
require.resolve('react-hot-loader/babel'),
require.resolve('babel-plugin-macros'),
require.resolve('babel-plugin-syntax-dynamic-import'),
[
require.resolve('babel-plugin-transform-object-rest-spread'),
Expand Down
59 changes: 44 additions & 15 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "gutenblock",
"version": "1.0.0",
"version": "1.0.1",
"description": "",
"main": "index.js",
"scripts": {
Expand All @@ -15,6 +15,7 @@
"babel-core": "^6.26.0",
"babel-eslint": "^8.2.3",
"babel-loader": "^7.1.4",
"babel-plugin-macros": "^2.4.2",
"babel-plugin-syntax-dynamic-import": "^6.18.0",
"babel-plugin-transform-object-rest-spread": "^6.26.0",
"babel-plugin-transform-react-jsx": "^6.24.1",
Expand Down

0 comments on commit de960bf

Please sign in to comment.