mirror of
https://github.com/iconoir-icons/iconoir
synced 2024-05-17 22:06:42 +02:00
47 lines
908 B
JavaScript
47 lines
908 B
JavaScript
/** @type {import('@svgr/core').Config} */
|
|
export const svgrOptions = {
|
|
plugins: ['@svgr/plugin-jsx'],
|
|
icon: true,
|
|
ref: true,
|
|
typescript: true,
|
|
svgProps: {
|
|
width: '1.5em',
|
|
height: '1.5em',
|
|
color: 'currentColor',
|
|
},
|
|
jsx: {
|
|
babelConfig: {
|
|
plugins: [
|
|
[
|
|
'@svgr/babel-plugin-remove-jsx-attribute',
|
|
{
|
|
elements: ['path'],
|
|
attributes: ['strokeWidth'],
|
|
},
|
|
'remove-stroke-width',
|
|
],
|
|
],
|
|
},
|
|
},
|
|
};
|
|
|
|
/** @type {import('@svgr/core').Config} */
|
|
export const nativeSvgrOptions = {
|
|
...svgrOptions,
|
|
native: true,
|
|
jsx: {
|
|
babelConfig: {
|
|
plugins: [
|
|
...svgrOptions.jsx.babelConfig.plugins,
|
|
[
|
|
'@svgr/babel-plugin-remove-jsx-attribute',
|
|
{
|
|
elements: ['Svg'],
|
|
attributes: ['xmlns'],
|
|
},
|
|
],
|
|
],
|
|
},
|
|
},
|
|
};
|