From acc5b963ddb05a01a2352e23f0915efd7adf2524 Mon Sep 17 00:00:00 2001 From: Tran Van Sang Date: Sat, 24 Oct 2020 22:10:27 +0900 Subject: [PATCH] Update README.md Fix incorrect syntax in README's sample. --- packages/webpack/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/webpack/README.md b/packages/webpack/README.md index 3ea29b20..e7ab0d23 100644 --- a/packages/webpack/README.md +++ b/packages/webpack/README.md @@ -103,7 +103,7 @@ By default, `@svgr/webpack` includes a `babel-loader` with [an optimized configu It is possible to detect the module that requires your SVG using [`Rule.issuer`](https://webpack.js.org/configuration/module/#rule-issuer) in Webpack. Using it you can specify two different configurations for JavaScript and the rest of your files. ```js -{ +[ { test: /\.svg(\?v=\d+\.\d+\.\d+)?$/, issuer: { @@ -115,7 +115,7 @@ It is possible to detect the module that requires your SVG using [`Rule.issuer`] test: /\.svg(\?v=\d+\.\d+\.\d+)?$/, loader: 'url-loader' }, -} +] ``` ## License