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

Parcel plugin for SVG imports in React apps (like in CRA2) #215

Closed
MatejBransky opened this issue Nov 3, 2018 · 0 comments
Closed

Parcel plugin for SVG imports in React apps (like in CRA2) #215

MatejBransky opened this issue Nov 3, 2018 · 0 comments

Comments

@MatejBransky
Copy link

🚀 Feature Proposal

Add support for SVG imports in Parcel projects.

Motivation

It would allow much simpler workflow with SVG in React projects with Parcel bundler.

Example

import React from 'react';
import Icon from './Icon.svg';

const App = () => (
  <div>Hello World! <Icon /></div>
);

Pitch

I think that this should be solved directly in SVGR environment like it is done with webpack and rollup.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants