svgr
Public

Transform SVGs into React components 🦁

How to configure SVGR in a tsup package inside a turborepo#914

Open
Opened 10/25/20232 commentsby kriptonian1
kriptonian1

So I was working on a project where I wanna setup svgr inside a tsup package in turborepo. This is my tsup config ```ts import type { Options } from "tsup"; import { defineConfig } from "tsup"; export default defineConfig((options: Options) => ({ plugins: [], treeshake: true, splitting: true, entryPoints: ["./**/*.tsx"], // format: ["esm"], dts: true, minify: true, clean: true, externals: ["react"], ...options, })); ``` and this is my folder structure ```mdx my-turborepo-project/ |-- app/ | |-- web/ | |-- docs/ |-- packages/ | |-- ui/ | | |-- components/ | | |-- tsup.config.ts | | |-- tailwind.config.mjs | | |-- tsconfig.json | |-- tailwind-config/ | |-- tsconfig/ | |-- eslint-config/ |-- tsconfig.json |-- turbo.json |-- pnpm-workspace.yaml |-- pnpm-lock.yaml |-- package.json |-- .gitignore ```

AI Analysis

This issue appears to be discussing a feature request or bug report related to the repository. Based on the content, it seems to be still under discussion. The issue was opened by kriptonian1 and has received 2 comments.

Add a comment
Comment form would go here