Skip to content

Commit 7052b74

Browse files
authored
chore: restore SVG plugin in Rollup config (#10481)
Signed-off-by: Jon Koops <[email protected]>
1 parent bf6e41e commit 7052b74

File tree

3 files changed

+31
-29
lines changed

3 files changed

+31
-29
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@
6464
"rimraf": "^5.0.5",
6565
"rollup": "^4.17.2",
6666
"rollup-plugin-scss": "^4.0.0",
67+
"rollup-plugin-svg": "^2.0.0",
6768
"sass": "^1.77.2",
6869
"surge": "^0.23.1",
6970
"ts-node": "^10.9.1",

packages/rollup.base.mjs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import replace from '@rollup/plugin-replace';
55
import terser from '@rollup/plugin-terser';
66
import { defineConfig } from 'rollup';
77
import scss from 'rollup-plugin-scss';
8+
import svg from 'rollup-plugin-svg';
89

910
const isProduction = process.env.IS_PRODUCTION;
1011
let exitCode = 0;
@@ -30,6 +31,9 @@ export default function baseConfig({ packageName, name }) {
3031
nodeResolve(),
3132
commonjs(),
3233
scss(),
34+
// SVG plugin does not ship with types.
35+
// @ts-ignore
36+
svg(),
3337
circularFailPlugin()
3438
];
3539

yarn.lock

Lines changed: 26 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -3727,7 +3727,9 @@
37273727
"@types/react" "*"
37283728

37293729
"@types/react-router-dom@^5.3.3":
3730-
version "5.3.4"
3730+
version "5.3.3"
3731+
resolved "https://registry.yarnpkg.com/@types/react-router-dom/-/react-router-dom-5.3.3.tgz#e9d6b4a66fcdbd651a5f106c2656a30088cc1e83"
3732+
integrity sha512-kpqnYK4wcdm5UaWI3fLcELopqLrHgLqNsdpHauzlQktfkHL3npOSwtj1Uz9oKBAzs7lFtVkV8j83voAz2D8fhw==
37313733
dependencies:
37323734
"@types/history" "^4.7.11"
37333735
"@types/react" "*"
@@ -8580,6 +8582,11 @@ estraverse@^5.1.0, estraverse@^5.2.0, estraverse@^5.3.0:
85808582
resolved "https://registry.yarnpkg.com/estraverse/-/estraverse-5.3.0.tgz#2eea5290702f26ab8fe5370370ff86c965d21123"
85818583
integrity sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==
85828584

8585+
estree-walker@^0.2.1:
8586+
version "0.2.1"
8587+
resolved "https://registry.yarnpkg.com/estree-walker/-/estree-walker-0.2.1.tgz#bdafe8095383d8414d5dc2ecf4c9173b6db9412e"
8588+
integrity sha512-6/I1dwNKk0N9iGOU3ydzAAurz4NPo/ttxZNCqgIVbWFvWyzWBSNonRrJ5CpjDuyBfmM7ENN7WCzUi9aT/UPXXQ==
8589+
85838590
estree-walker@^0.6.1:
85848591
version "0.6.1"
85858592
resolved "https://registry.npmjs.org/estree-walker/-/estree-walker-0.6.1.tgz"
@@ -16600,6 +16607,21 @@ rollup-plugin-scss@^4.0.0:
1660016607
dependencies:
1660116608
rollup-pluginutils "^2.3.3"
1660216609

16610+
rollup-plugin-svg@^2.0.0:
16611+
version "2.0.0"
16612+
resolved "https://registry.yarnpkg.com/rollup-plugin-svg/-/rollup-plugin-svg-2.0.0.tgz#ce11b55e915d5b2190328c4e6632bd6b4fe12ee9"
16613+
integrity sha512-DmE7dSQHo1SC5L2uH2qul3Mjyd5oV6U1aVVkyvTLX/mUsRink7f1b1zaIm+32GEBA6EHu8H/JJi3DdWqM53ySQ==
16614+
dependencies:
16615+
rollup-pluginutils "^1.3.1"
16616+
16617+
rollup-pluginutils@^1.3.1:
16618+
version "1.5.2"
16619+
resolved "https://registry.yarnpkg.com/rollup-pluginutils/-/rollup-pluginutils-1.5.2.tgz#1e156e778f94b7255bfa1b3d0178be8f5c552408"
16620+
integrity sha512-SjdWWWO/CUoMpDy8RUbZ/pSpG68YHmhk5ROKNIoi2En9bJ8bTt3IhYi254RWiTclQmL7Awmrq+rZFOhZkJAHmQ==
16621+
dependencies:
16622+
estree-walker "^0.2.1"
16623+
minimatch "^3.0.2"
16624+
1660316625
rollup-pluginutils@^2.3.3:
1660416626
version "2.8.2"
1660516627
resolved "https://registry.npmjs.org/rollup-pluginutils/-/rollup-pluginutils-2.8.2.tgz"
@@ -17637,16 +17659,7 @@ string-length@^4.0.1:
1763717659
char-regex "^1.0.2"
1763817660
strip-ansi "^6.0.0"
1763917661

17640-
"string-width-cjs@npm:string-width@^4.2.0":
17641-
version "4.2.3"
17642-
resolved "https://registry.yarnpkg.com/string-width/-/string-width-4.2.3.tgz#269c7117d27b05ad2e536830a8ec895ef9c6d010"
17643-
integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==
17644-
dependencies:
17645-
emoji-regex "^8.0.0"
17646-
is-fullwidth-code-point "^3.0.0"
17647-
strip-ansi "^6.0.1"
17648-
17649-
"string-width@^1.0.2 || 2 || 3 || 4", string-width@^4.1.0, string-width@^4.2.0, string-width@^4.2.3:
17662+
"string-width-cjs@npm:string-width@^4.2.0", "string-width@^1.0.2 || 2 || 3 || 4", string-width@^4.1.0, string-width@^4.2.0, string-width@^4.2.3:
1765017663
version "4.2.3"
1765117664
resolved "https://registry.yarnpkg.com/string-width/-/string-width-4.2.3.tgz#269c7117d27b05ad2e536830a8ec895ef9c6d010"
1765217665
integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==
@@ -17759,7 +17772,7 @@ stringify-entities@^3.0.1:
1775917772
is-decimal "^1.0.2"
1776017773
is-hexadecimal "^1.0.0"
1776117774

17762-
"strip-ansi-cjs@npm:strip-ansi@^6.0.1":
17775+
"strip-ansi-cjs@npm:strip-ansi@^6.0.1", strip-ansi@^6.0.0, strip-ansi@^6.0.1:
1776317776
version "6.0.1"
1776417777
resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-6.0.1.tgz#9e26c63d30f53443e9489495b2105d37b67a85d9"
1776517778
integrity sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==
@@ -17778,13 +17791,6 @@ strip-ansi@^5.1.0:
1777817791
dependencies:
1777917792
ansi-regex "^4.1.0"
1778017793

17781-
strip-ansi@^6.0.0, strip-ansi@^6.0.1:
17782-
version "6.0.1"
17783-
resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-6.0.1.tgz#9e26c63d30f53443e9489495b2105d37b67a85d9"
17784-
integrity sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==
17785-
dependencies:
17786-
ansi-regex "^5.0.1"
17787-
1778817794
strip-ansi@^7.0.1:
1778917795
version "7.1.0"
1779017796
resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-7.1.0.tgz#d5b6568ca689d8561370b0707685d22434faff45"
@@ -19897,7 +19903,7 @@ worker-farm@^1.7.0:
1989719903
dependencies:
1989819904
errno "~0.1.7"
1989919905

19900-
"wrap-ansi-cjs@npm:wrap-ansi@^7.0.0":
19906+
"wrap-ansi-cjs@npm:wrap-ansi@^7.0.0", wrap-ansi@^7.0.0:
1990119907
version "7.0.0"
1990219908
resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-7.0.0.tgz#67e145cff510a6a6984bdf1152911d69d2eb9e43"
1990319909
integrity sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==
@@ -19915,15 +19921,6 @@ wrap-ansi@^6.0.1, wrap-ansi@^6.2.0:
1991519921
string-width "^4.1.0"
1991619922
strip-ansi "^6.0.0"
1991719923

19918-
wrap-ansi@^7.0.0:
19919-
version "7.0.0"
19920-
resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-7.0.0.tgz#67e145cff510a6a6984bdf1152911d69d2eb9e43"
19921-
integrity sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==
19922-
dependencies:
19923-
ansi-styles "^4.0.0"
19924-
string-width "^4.1.0"
19925-
strip-ansi "^6.0.0"
19926-
1992719924
wrap-ansi@^8.0.1, wrap-ansi@^8.1.0:
1992819925
version "8.1.0"
1992919926
resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-8.1.0.tgz#56dc22368ee570face1b49819975d9b9a5ead214"

0 commit comments

Comments
 (0)