Skip to content

Commit

Permalink
feat(gatsby-plugin): add sx prop transformer
Browse files Browse the repository at this point in the history
  • Loading branch information
kripod committed Apr 26, 2020
1 parent 1828c2d commit 6efbb2d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
7 changes: 7 additions & 0 deletions packages/gatsby-plugin-glaze/gatsby-node.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
/** @type {import('gatsby').GatsbyNode["onCreateBabelConfig"]} */
exports.onCreateBabelConfig = ({ actions }) => {
actions.setBabelPlugin({
name: 'babel-plugin-glaze',
options: {},
});
};
3 changes: 2 additions & 1 deletion packages/gatsby-plugin-glaze/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@
"type-check": "tsc --build"
},
"dependencies": {
"@types/webpack-env": "^1.15.2"
"@types/webpack-env": "^1.15.2",
"babel-plugin-glaze": "^0.5.0"
},
"peerDependencies": {
"gatsby": "^2",
Expand Down

0 comments on commit 6efbb2d

Please sign in to comment.