Skip to content

Commit d48928d

Browse files
committed
js -> jsx
1 parent ddd1229 commit d48928d

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed
File renamed without changes.
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React from 'react'
22
import ReactDOM from 'react-dom'
3-
import App from './App'
3+
import App from './App.jsx'
44

55
ReactDOM.render(<App />, document.getElementById('root'))

packages/webpack-app/webpack.config.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@ const port = process.env.PORT || 3000
55

66
module.exports = {
77
mode: 'development',
8-
entry: './src/index.js',
8+
entry: './src/index.jsx',
99
output: {
1010
filename: 'bundle.[hash].js',
1111
},
1212
devtool: 'inline-source-map',
1313
module: {
1414
rules: [
1515
{
16-
test: /\.(js)$/,
16+
test: /\.(js|jsx)$/,
1717
exclude: /node_modules/,
1818
use: ['babel-loader'],
1919
},

0 commit comments

Comments
 (0)