mirror of
https://github.com/actualbudget/actual.git
synced 2026-04-30 10:14:53 -05:00
51 lines
1.1 KiB
JavaScript
51 lines
1.1 KiB
JavaScript
module.exports = {
|
|
svgoConfig: {
|
|
plugins: [
|
|
{
|
|
name: 'preset-default',
|
|
params: {
|
|
overrides: { removeUnknownsAndDefaults: false },
|
|
},
|
|
},
|
|
'removeDimensions',
|
|
],
|
|
},
|
|
jsx: {
|
|
babelConfig: {
|
|
plugins: [
|
|
[
|
|
'./add-attribute',
|
|
{
|
|
elements: ['path', 'Path', 'rect', 'Rect'],
|
|
attributes: [
|
|
{
|
|
name: 'fill',
|
|
value: 'currentColor',
|
|
spread: false,
|
|
literal: false,
|
|
position: 'end',
|
|
},
|
|
],
|
|
},
|
|
],
|
|
[
|
|
'@svgr/babel-plugin-add-jsx-attribute',
|
|
{
|
|
elements: ['svg', 'Svg'],
|
|
attributes: [
|
|
{
|
|
name: 'style',
|
|
value: '({ color: "inherit", ...props.style })',
|
|
spread: false,
|
|
literal: true,
|
|
position: 'end',
|
|
},
|
|
],
|
|
},
|
|
'add-style',
|
|
],
|
|
],
|
|
},
|
|
},
|
|
};
|