From a0d76a8c0e05129c8ddaa94d10fd71a52fc1de57 Mon Sep 17 00:00:00 2001 From: Aziz Khambati Date: Mon, 16 Dec 2019 20:25:08 +0530 Subject: [PATCH] Fix pragmaFrag spelling in error message (#10868) --- packages/babel-plugin-transform-react-jsx/src/index.js | 2 +- .../options.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/babel-plugin-transform-react-jsx/src/index.js b/packages/babel-plugin-transform-react-jsx/src/index.js index 778e5f960b7a..a655b30b6972 100644 --- a/packages/babel-plugin-transform-react-jsx/src/index.js +++ b/packages/babel-plugin-transform-react-jsx/src/index.js @@ -80,7 +80,7 @@ export default declare((api, options) => { ) { throw new Error( "transform-react-jsx: pragma has been set but " + - "pragmafrag has not been set", + "pragmaFrag has not been set", ); } }, diff --git a/packages/babel-plugin-transform-react-jsx/test/fixtures/react/throw-if-pragma-set-but-not-pragmafrag-and-frag-used/options.json b/packages/babel-plugin-transform-react-jsx/test/fixtures/react/throw-if-pragma-set-but-not-pragmafrag-and-frag-used/options.json index b89035fd105e..1bfb659b3c98 100644 --- a/packages/babel-plugin-transform-react-jsx/test/fixtures/react/throw-if-pragma-set-but-not-pragmafrag-and-frag-used/options.json +++ b/packages/babel-plugin-transform-react-jsx/test/fixtures/react/throw-if-pragma-set-but-not-pragmafrag-and-frag-used/options.json @@ -1,3 +1,3 @@ { - "throws": "transform-react-jsx: pragma has been set but pragmafrag has not been set" + "throws": "transform-react-jsx: pragma has been set but pragmaFrag has not been set" }