Skip to content

Commit 7953bca

Browse files
authored
Merge pull request #176 from Web-Dev-Path/chore/styled-components-swc
Remove babel-plugin-styled-components to use nextjs built in compiler
2 parents 14072c9 + 8a46569 commit 7953bca

File tree

5 files changed

+8
-28
lines changed

5 files changed

+8
-28
lines changed

.babelrc

-13
This file was deleted.

CHANGELOG.md

+1-2
Original file line numberDiff line numberDiff line change
@@ -108,5 +108,4 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
108108
-
109109

110110
### Fixed
111-
112-
-
111+
- Remove `babel-plugin-styled-components` to use nextjs built in compiler

next.config.js

+6
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@ const withPWA = require('next-pwa')({
66
});
77

88
module.exports = withPWA({
9+
compiler: {
10+
styledComponents: {
11+
ssr: true,
12+
cssProp: true,
13+
},
14+
},
915
i18n: {
1016
locales: ['en'],
1117
defaultLocale: 'en',

package.json

-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@
3333
"swiper": "^8.2.2"
3434
},
3535
"devDependencies": {
36-
"babel-plugin-styled-components": "^2.1.1",
3736
"husky": "^8.0.0",
3837
"lint-staged": "^13.0.3",
3938
"prettier": "^2.7.1",

yarn.lock

+1-12
Original file line numberDiff line numberDiff line change
@@ -1439,17 +1439,6 @@ babel-plugin-polyfill-regenerator@^0.3.1:
14391439
lodash "^4.17.11"
14401440
picomatch "^2.3.0"
14411441

1442-
babel-plugin-styled-components@^2.1.1:
1443-
version "2.1.1"
1444-
resolved "https://registry.yarnpkg.com/babel-plugin-styled-components/-/babel-plugin-styled-components-2.1.1.tgz#cd977cc0ff8410d5cbfdd142e42576e9c8794b87"
1445-
integrity sha512-c8lJlszObVQPguHkI+akXv8+Jgb9Ccujx0EetL7oIvwU100LxO6XAGe45qry37wUL40a5U9f23SYrivro2XKhA==
1446-
dependencies:
1447-
"@babel/helper-annotate-as-pure" "^7.16.0"
1448-
"@babel/helper-module-imports" "^7.16.0"
1449-
babel-plugin-syntax-jsx "^6.18.0"
1450-
lodash "^4.17.21"
1451-
picomatch "^2.3.0"
1452-
14531442
babel-plugin-syntax-jsx@^6.18.0:
14541443
version "6.18.0"
14551444
resolved "https://registry.yarnpkg.com/babel-plugin-syntax-jsx/-/babel-plugin-syntax-jsx-6.18.0.tgz#0af32a9a6e13ca7a3fd5069e62d7b0f58d0d8946"
@@ -2606,7 +2595,7 @@ lodash.sortby@^4.7.0:
26062595
resolved "https://registry.yarnpkg.com/lodash.sortby/-/lodash.sortby-4.7.0.tgz#edd14c824e2cc9c1e0b0a1b42bb5210516a42438"
26072596
integrity sha512-HDWXG8isMntAyRF5vZ7xKuEvOhT4AhlRt/3czTSjvGUxjYCBVRQY48ViDHyfYz9VIoBkW4TMGQNapx+l3RUwdA==
26082597

2609-
lodash@^4.17.11, lodash@^4.17.20, lodash@^4.17.21:
2598+
lodash@^4.17.11, lodash@^4.17.20:
26102599
version "4.17.21"
26112600
resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.21.tgz#679591c564c3bffaae8454cf0b3df370c3d6911c"
26122601
integrity sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==

0 commit comments

Comments
 (0)