diff options
author | Saúl Ibarra Corretgé <s@saghul.net> | 2020-06-04 11:09:39 +0200 |
---|---|---|
committer | Saúl Ibarra Corretgé <s@saghul.net> | 2020-06-04 13:44:04 +0200 |
commit | 09345d6f0b1c5b5547bc49593cdc196dfbaf411e (patch) | |
tree | 9a6eeb8b29bc93d59a781ce578dd82b60d671617 /webpack.renderer.js | |
parent | 87d63155a648ebed7f39e23c7030f4be62257580 (diff) |
Replace unmaintained SVG plugin
Diffstat (limited to 'webpack.renderer.js')
-rw-r--r-- | webpack.renderer.js | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/webpack.renderer.js b/webpack.renderer.js index 4bef0d1..cfe8b7d 100644 --- a/webpack.renderer.js +++ b/webpack.renderer.js @@ -41,12 +41,9 @@ module.exports = { require.resolve('@babel/preset-react') ], plugins: [ - /* eslint-disable max-len */ require.resolve('@babel/plugin-transform-flow-strip-types'), require.resolve('@babel/plugin-proposal-class-properties'), - require.resolve('@babel/plugin-proposal-export-namespace-from'), - /* eslint-enable max-len */ - require.resolve('babel-plugin-inline-react-svg') + require.resolve('@babel/plugin-proposal-export-namespace-from') ] }, test: /\.js$/ @@ -63,8 +60,14 @@ module.exports = { test: /\.png$/ }, { - loader: 'svg-inline-loader', - test: /\.svg$/ + test: /\.svg$/, + use: [ { + loader: '@svgr/webpack', + options: { + dimensions: false, + expandProps: 'start' + } + } ] } ] }, |