Skip to content

Commit

Permalink
add babel plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
rohit-gohri committed Jul 15, 2022
1 parent 1db9838 commit 82c4407
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 2 deletions.
1 change: 1 addition & 0 deletions website/babel.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
module.exports = {
presets: [require.resolve('@docusaurus/core/lib/babel/preset')],
plugins: ['babel-plugin-styled-components']
};
3 changes: 2 additions & 1 deletion website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@
},
"devDependencies": {
"@percy/cli": "^1.3.0",
"@types/react": "^17.0.45"
"@types/react": "^17.0.45",
"babel-plugin-styled-components": "^2.0.7"
},
"browserslist": {
"production": [
Expand Down
18 changes: 17 additions & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5291,6 +5291,21 @@ __metadata:
languageName: node
linkType: hard

"babel-plugin-styled-components@npm:^2.0.7":
version: 2.0.7
resolution: "babel-plugin-styled-components@npm:2.0.7"
dependencies:
"@babel/helper-annotate-as-pure": ^7.16.0
"@babel/helper-module-imports": ^7.16.0
babel-plugin-syntax-jsx: ^6.18.0
lodash: ^4.17.11
picomatch: ^2.3.0
peerDependencies:
styled-components: ">= 2"
checksum: 80b06b10db02d749432a0ac43a5feedd686f6b648628d7433a39b1844260b2b7c72431f6e705c82636ee025fcfd4f6c32fc05677e44033b8a39ddcd4488b3147
languageName: node
linkType: hard

"babel-plugin-syntax-jsx@npm:^6.18.0":
version: 6.18.0
resolution: "babel-plugin-syntax-jsx@npm:6.18.0"
Expand Down Expand Up @@ -11696,7 +11711,7 @@ __metadata:
languageName: node
linkType: hard

"picomatch@npm:^2.0.4, picomatch@npm:^2.2.1, picomatch@npm:^2.3.1":
"picomatch@npm:^2.0.4, picomatch@npm:^2.2.1, picomatch@npm:^2.3.0, picomatch@npm:^2.3.1":
version: 2.3.1
resolution: "picomatch@npm:2.3.1"
checksum: 050c865ce81119c4822c45d3c84f1ced46f93a0126febae20737bd05ca20589c564d6e9226977df859ed5e03dc73f02584a2b0faad36e896936238238b0446cf
Expand Down Expand Up @@ -12913,6 +12928,7 @@ __metadata:
"@docusaurus/preset-classic": ^2.0.0-beta.21
"@percy/cli": ^1.3.0
"@types/react": ^17.0.45
babel-plugin-styled-components: ^2.0.7
clsx: ^1.1.1
react: ^17.0.2
react-dom: ^17.0.2
Expand Down

0 comments on commit 82c4407

Please sign in to comment.