leegeunhyeok / react-native-esbuild

⚡️ esbuild based universal bundler for React Native
https://react-native-esbuild.vercel.app
MIT License
188 stars 9 forks source link

react-native-svg #51

Open mementomoriCarpediem opened 6 months ago

mementomoriCarpediem commented 6 months ago

Package information

Configuration

/**
 * @type {import("@react-native-esbuild/core").Config}
 */
exports.default = {
    logger: {
        timestamp: 'YYYY-MM-DD HH:mm:ss.SSS',
    },
    resolver: {},
    transformer: {
        fullyTransformPackageNames: [],
        stripFlowPackageNames: ['react-native-blob-util', 'react-native-fs'],
        additionalTransformRules: {
            babel: [
                {
                    test: (path, code) => {},
                    options: {},
                },
            ],
        },
    },
};

Additional context

leegeunhyeok commented 4 days ago

Sorry for the late response.

Since react-native-esbuild includes SVG transformation functionality by default, there is no need for a babel configuration.

Please check if the file extension is .svg, remove the babel svg configuration, and then verify. If the issue persists, please send the code required to reproduce the issue.