Skip to content
This repository has been archived by the owner on Jun 2, 2022. It is now read-only.

Commit

Permalink
feat: Add babel-plugin-styled-components for <Component css={} /> s…
Browse files Browse the repository at this point in the history
…yntax
  • Loading branch information
SSen committed Jul 17, 2019
1 parent 147d9d2 commit 2dcc512
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions lib/transpile/getBabelConfig.js

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

2 changes: 1 addition & 1 deletion lib/transpile/getBabelConfig.js.map

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
@@ -1,6 +1,6 @@
{
"name": "react-zeroconfig",
"version": "3.7.0",
"version": "3.8.0-alpha.1",
"description": "Zero config tools for typescript projects",
"keywords": [
"zeroconfig",
Expand Down Expand Up @@ -86,6 +86,7 @@
"babel-loader": "^8.0.6",
"babel-plugin-import": "^1.12.0",
"babel-plugin-named-asset-import": "^0.3.2",
"babel-plugin-styled-components": "^1.10.6",
"browser-sync": "^2.26.7",
"browserslist": "^4.6.4",
"cfonts": "^2.4.3",
Expand Down
1 change: 1 addition & 0 deletions src/transpile/getBabelConfig.ts
Expand Up @@ -72,6 +72,7 @@ export function getBabelConfig({modules, cwd}: {cwd: string, modules: Modules}):
},
},
],
require.resolve('babel-plugin-styled-components'),
[
require.resolve('babel-plugin-import'),
{
Expand Down

0 comments on commit 2dcc512

Please sign in to comment.