Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add skipImport option #597

Closed
wants to merge 1 commit into from
Closed

Conversation

gutenye
Copy link

@gutenye gutenye commented Sep 19, 2021

To use with libs other than React, for example Preact.

import svgr from '@svgr/core'
const result = await svgr(code, { skipImport: true })
return `
  import { h } from 'preact'
  ${result}
`

This is more flexiable.

@vercel
Copy link

vercel bot commented Sep 19, 2021

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/gregberge/svgr/4KcaJkdwaqv1RkmSkJ4ZcuioZfyC
✅ Preview: https://svgr-git-fork-gutenye-skip-import-gregberge.vercel.app

@gregberge
Copy link
Owner

Fixed in #613

@gregberge gregberge closed this Nov 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants