We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cdf4b96 commit 0f1ef13Copy full SHA for 0f1ef13
README.md
@@ -15,6 +15,29 @@ A set of tools facilitating the migration of Ember components to React component
15
ember install react-migration-toolkit
16
```
17
18
+## Configuration
19
+
20
+⚠️ When using Webpack, your Ember apps need to compile jsx:
21
22
+```javascript
23
+// webpack.config.js
24
+rules: [
25
+ // ...
26
+ {
27
+ test: /\.jsx/, // replace or add tsx if you use typescript
28
+ use: {
29
+ loader: 'babel-loader',
30
+ options: {
31
+ presets: [
32
+ // Add other presets here if you need Typescript support for example
33
+ ['@babel/preset-react', { runtime: 'automatic' }],
34
+ ],
35
+ },
36
37
38
+];
39
+```
40
41
## Usage
42
43
The main component brought by this addon is the `ReactBridge` Ember component.
0 commit comments