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 df43d74 commit 83ea8d6
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 @@ -11688,7 +11703,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: 26c02b8d06f03206fc2ab8d16f19960f2ff9e81a658f831ecb656d8f17d9edc799e8364b1f4a7873e89d9702dff96204be0fa26fe4181f6843f040f819dac4be
Expand Down Expand Up @@ -12892,6 +12907,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 83ea8d6

Please sign in to comment.