Skip to content

Commit

Permalink
Remove babel-plugin-inline-react-svg
Browse files Browse the repository at this point in the history
  • Loading branch information
thelovekesh committed Jun 12, 2024
1 parent 6d5e476 commit ac43705
Showing 1 changed file with 1 addition and 42 deletions.
43 changes: 1 addition & 42 deletions babel.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,54 +8,13 @@ module.exports = function (api) {

return {
...config,
plugins: [
...config.plugins,
'@babel/plugin-proposal-class-properties',
[
'inline-react-svg',
{
svgo: {
plugins: [
{
name: 'preset-default',
params: {
overrides: {
cleanupIDs: {
minify: false, // Prevent duplicate SVG IDs from minification.
},
},
},
},
],
},
},
],
],
plugins: [...config.plugins, '@babel/plugin-proposal-class-properties'],
sourceMaps: true,
env: {
production: {
plugins: [
...config.plugins,
'@babel/plugin-proposal-class-properties',
[
'inline-react-svg',
{
svgo: {
plugins: [
{
name: 'preset-default',
params: {
overrides: {
cleanupIDs: {
minify: false, // Prevent duplicate SVG IDs from minification.
},
},
},
},
],
},
},
],
'transform-react-remove-prop-types',
],
},
Expand Down

0 comments on commit ac43705

Please sign in to comment.