diff --git a/packages/scripts/config/webpack.config.js b/packages/scripts/config/webpack.config.js index 86ed99807d8815..5bbc0a43e18b90 100644 --- a/packages/scripts/config/webpack.config.js +++ b/packages/scripts/config/webpack.config.js @@ -184,9 +184,15 @@ const config = { }, { test: /\.svg$/, + issuer: /\.jsx?$/, use: [ '@svgr/webpack', 'url-loader' ], type: 'javascript/auto', }, + { + test: /\.svg$/, + issuer: /\.(sc|sa|c)ss$/, + type: 'asset/inline', + }, { test: /\.(bmp|png|jpe?g|gif)$/i, type: 'asset/resource',