2.1.0 • Published 2 years ago

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

Weekly downloads
761
License
MIT
Repository
github
Last release
2 years 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

2 years ago

2.0.1

6 years ago

2.0.0

6 years ago

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

8 years ago

1.0.0

8 years ago

0.5.0

8 years ago

0.4.0

8 years ago

0.3.0

8 years ago

0.2.1

8 years ago

0.2.0

8 years ago

0.1.2

8 years ago

0.1.1

8 years ago

0.1.0

8 years ago