From 77676f0aed16964d1abe434bf7c8b5426e1e1b00 Mon Sep 17 00:00:00 2001 From: Sudhir Mitharwal Date: Mon, 27 May 2019 15:47:54 +0530 Subject: [PATCH 1/3] fixes: #7103 - append title element to SVG component --- packages/react-scripts/config/webpack.config.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/react-scripts/config/webpack.config.js b/packages/react-scripts/config/webpack.config.js index 8f70442d584..3b5b2e86dcf 100644 --- a/packages/react-scripts/config/webpack.config.js +++ b/packages/react-scripts/config/webpack.config.js @@ -384,7 +384,8 @@ module.exports = function(webpackEnv) { { loaderMap: { svg: { - ReactComponent: '@svgr/webpack?-svgo,+ref![path]', + ReactComponent: + '@svgr/webpack?-svgo,+titleProp,+ref![path]', }, }, }, From f6b96cc1e64a40e4385f2c7d7b23ebc98afc21c3 Mon Sep 17 00:00:00 2001 From: Sudhir Mitharwal Date: Tue, 28 May 2019 20:25:49 +0530 Subject: [PATCH 2/3] update(package): update the @svgr/webpack from 4.2.0 to 4.3.0 to get the titleProp update for fallback title --- packages/react-scripts/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react-scripts/package.json b/packages/react-scripts/package.json index e4a93a37e03..7b3036e7a89 100644 --- a/packages/react-scripts/package.json +++ b/packages/react-scripts/package.json @@ -29,7 +29,7 @@ "types": "./lib/react-app.d.ts", "dependencies": { "@babel/core": "7.4.3", - "@svgr/webpack": "4.2.0", + "@svgr/webpack": "4.3.0", "@typescript-eslint/eslint-plugin": "1.6.0", "@typescript-eslint/parser": "1.6.0", "babel-eslint": "10.0.1", From f361c4f503a576cad30fc07602389a1e9db08d51 Mon Sep 17 00:00:00 2001 From: Sudhir Mitharwal Date: Tue, 2 Jul 2019 08:46:06 +0530 Subject: [PATCH 3/3] chore(@svgr/webpack): from 4.3.0 to 4.3.1 to get the title fix Get the fix https://github.com/smooth-code/svgr/issues/314 --- packages/react-scripts/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react-scripts/package.json b/packages/react-scripts/package.json index 7b3036e7a89..23588ef78be 100644 --- a/packages/react-scripts/package.json +++ b/packages/react-scripts/package.json @@ -29,7 +29,7 @@ "types": "./lib/react-app.d.ts", "dependencies": { "@babel/core": "7.4.3", - "@svgr/webpack": "4.3.0", + "@svgr/webpack": "4.3.1", "@typescript-eslint/eslint-plugin": "1.6.0", "@typescript-eslint/parser": "1.6.0", "babel-eslint": "10.0.1",