From 4205152bbe181ff2fe383877d483c404658c605b Mon Sep 17 00:00:00 2001 From: Tran Van Sang Date: Sun, 15 Nov 2020 07:02:48 +0900 Subject: [PATCH] docs: fix incorrect syntax in README's sample (#503) --- 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