Skip to content

Commit 85cb7c1

Browse files
fix: remove emotion as peerDep & minor typo fix
1 parent e18c239 commit 85cb7c1

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

template/default/build-tool/babelrc.base.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ module.exports = ({ pure, withModules, isUMD = false }) => ({
3030
['@babel/proposal-class-properties', { loose: true }],
3131
'@babel/transform-runtime',
3232
'minify-dead-code-elimination',
33-
{{#ifCond stype '===' 'emotion'}}'emotion',{{/ifCond}}{{#ifCond style '===' 'styled-component'}}'babel-plugin-styled-components',{{/ifCond}}
33+
{{#ifCond style '===' 'emotion'}}'emotion',{{/ifCond}}{{#ifCond style '===' 'styled-component'}}'babel-plugin-styled-components',{{/ifCond}}
3434
{{#if externalCSS}}
3535
...(isUMD
3636
? []

template/default/package.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,6 @@
5151
"react": "^16.12.0",
5252
"react-dom": "^16.12.0",
5353
"prop-types": "^15.7.2"
54-
{{#ifCond style '===' 'emotion'}}
55-
,"@emotion/core": "^10.0.22"
56-
{{/ifCond}}
5754
{{#ifCond style '===' 'styled-component'}}
5855
,"styled-components": "^4.4.1"
5956
{{/ifCond}}

0 commit comments

Comments
 (0)