Skip to content

Commit 83ea8d6

Browse files
committed
add babel plugin
1 parent df43d74 commit 83ea8d6

File tree

3 files changed

+20
-2
lines changed

3 files changed

+20
-2
lines changed

website/babel.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
module.exports = {
22
presets: [require.resolve('@docusaurus/core/lib/babel/preset')],
3+
plugins: ['babel-plugin-styled-components']
34
};

website/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@
3131
},
3232
"devDependencies": {
3333
"@percy/cli": "^1.3.0",
34-
"@types/react": "^17.0.45"
34+
"@types/react": "^17.0.45",
35+
"babel-plugin-styled-components": "^2.0.7"
3536
},
3637
"browserslist": {
3738
"production": [

yarn.lock

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5291,6 +5291,21 @@ __metadata:
52915291
languageName: node
52925292
linkType: hard
52935293

5294+
"babel-plugin-styled-components@npm:^2.0.7":
5295+
version: 2.0.7
5296+
resolution: "babel-plugin-styled-components@npm:2.0.7"
5297+
dependencies:
5298+
"@babel/helper-annotate-as-pure": ^7.16.0
5299+
"@babel/helper-module-imports": ^7.16.0
5300+
babel-plugin-syntax-jsx: ^6.18.0
5301+
lodash: ^4.17.11
5302+
picomatch: ^2.3.0
5303+
peerDependencies:
5304+
styled-components: ">= 2"
5305+
checksum: 80b06b10db02d749432a0ac43a5feedd686f6b648628d7433a39b1844260b2b7c72431f6e705c82636ee025fcfd4f6c32fc05677e44033b8a39ddcd4488b3147
5306+
languageName: node
5307+
linkType: hard
5308+
52945309
"babel-plugin-syntax-jsx@npm:^6.18.0":
52955310
version: 6.18.0
52965311
resolution: "babel-plugin-syntax-jsx@npm:6.18.0"
@@ -11688,7 +11703,7 @@ __metadata:
1168811703
languageName: node
1168911704
linkType: hard
1169011705

11691-
"picomatch@npm:^2.0.4, picomatch@npm:^2.2.1, picomatch@npm:^2.3.1":
11706+
"picomatch@npm:^2.0.4, picomatch@npm:^2.2.1, picomatch@npm:^2.3.0, picomatch@npm:^2.3.1":
1169211707
version: 2.3.1
1169311708
resolution: "picomatch@npm:2.3.1"
1169411709
checksum: 26c02b8d06f03206fc2ab8d16f19960f2ff9e81a658f831ecb656d8f17d9edc799e8364b1f4a7873e89d9702dff96204be0fa26fe4181f6843f040f819dac4be
@@ -12892,6 +12907,7 @@ __metadata:
1289212907
"@docusaurus/preset-classic": ^2.0.0-beta.21
1289312908
"@percy/cli": ^1.3.0
1289412909
"@types/react": ^17.0.45
12910+
babel-plugin-styled-components: ^2.0.7
1289512911
clsx: ^1.1.1
1289612912
react: ^17.0.2
1289712913
react-dom: ^17.0.2

0 commit comments

Comments
 (0)