jacobmischka / gatsby-plugin-react-svg

Adds svg-react-loader to gatsby webpack config
https://www.npmjs.com/package/gatsby-plugin-react-svg
MIT License
69 stars 21 forks source link

Support for gatsby@next #5

Closed alampros closed 6 years ago

alampros commented 6 years ago

This changes the API a bit - options are passed to the loader rule via options.rule property. This allows for passing other rule options (like oneOf) in addition to include & exclude.

Closes #4

haniotis commented 6 years ago

👍

haniotis commented 6 years ago

@jacobmischka

amykapernick commented 6 years ago

+1 for v2 support

jacobmischka commented 6 years ago

Thanks! Published under the next tag!

bradwestfall commented 6 years ago

if someone is running node 8 like I am:

Error: /Users/bradwestfall/website/node_modules/gatsby-plugin-react-svg/gatsby-node.js:19
  ...ruleProps,
  ^^^
  SyntaxError: Unexpected token ...