From 78d5745535cf984e61578f1f4f74647765998ea3 Mon Sep 17 00:00:00 2001 From: Bradford Lemley Date: Sun, 18 Mar 2018 13:14:33 -0600 Subject: [PATCH] Add some stuff that requires transpilation. --- .../fixtures/monorepos/packages/comp1/index.js | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/packages/react-scripts/fixtures/monorepos/packages/comp1/index.js b/packages/react-scripts/fixtures/monorepos/packages/comp1/index.js index f3cb7964952..104989fe35a 100644 --- a/packages/react-scripts/fixtures/monorepos/packages/comp1/index.js +++ b/packages/react-scripts/fixtures/monorepos/packages/comp1/index.js @@ -1,5 +1,21 @@ import React from 'react'; -const Comp1 = () =>
Comp1
; +class Comp1 extends React.Component { + static parts = { + greeting: 'hello', + region: 'world', + }; + + render() { + const { greeting, region } = Comp1.parts; + + return ( +
+ Comp1 + {greeting} {region} +
+ ); + } +} export default Comp1;