2.1.0 • Published 6 months ago

@mapbox/svg-react-transformer-loader v2.1.0

Weekly downloads
761
License
MIT
Repository
github
Last release
6 months ago

@mapbox/svg-react-transformer-loader

A Webpack loader to transform SVG files into React component modules.

Runs SVG files through the toComponentModule function of svg-react-transformer. Please read the svg-react-transformer documentation for more details and code examples.

Installation

npm install @mapbox/svg-react-transformer-loader

Usage

Follow the instructions for using Webpack loaders.

You can pass all of the options from svg-react-transformer's toComponentModule function (e.g. SVGO plugins, a component template).

By default, the output of this loader is precompiled with Babel. You can bypass this step (and use your own compilation) by passing the additional option precompile: false.

2.1.0

6 months ago

2.0.1

4 years ago

2.0.0

5 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

7 years ago

1.0.0

7 years ago

0.5.0

7 years ago

0.4.0

7 years ago

0.3.0

7 years ago

0.2.1

7 years ago

0.2.0

7 years ago

0.1.2

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago