Skip to content

Commit c7e0070

Browse files
committed
Fix svg-component feature by updating @svgr/webpack
1 parent 793f8d7 commit c7e0070

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

packages/react-scripts/fixtures/kitchensink/template/src/App.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -221,11 +221,11 @@ class App extends Component {
221221
this.setFeature(f.default)
222222
);
223223
break;
224-
// case 'svg-component':
225-
// import('./features/webpack/SvgComponent').then(f =>
226-
// this.setFeature(f.default)
227-
// );
228-
// break;
224+
case 'svg-component':
225+
import('./features/webpack/SvgComponent').then(f =>
226+
this.setFeature(f.default)
227+
);
228+
break;
229229
case 'svg-in-css':
230230
import('./features/webpack/SvgInCss').then(f =>
231231
this.setFeature(f.default)

packages/react-scripts/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"types": "./lib/react-app.d.ts",
3030
"dependencies": {
3131
"@babel/core": "7.9.0",
32-
"@svgr/webpack": "4.3.3",
32+
"@svgr/webpack": "5.3.0",
3333
"@typescript-eslint/eslint-plugin": "^2.10.0",
3434
"@typescript-eslint/parser": "^2.10.0",
3535
"babel-eslint": "10.1.0",

0 commit comments

Comments
 (0)