Skip to content

Commit 1c152a7

Browse files
TicTacToe_JS config upgrade
- webpack2 --> webpack4 - babel6 --> babel7 - react15 --> react16 - changed outpit file as now dist is implict in webpack
1 parent 6544864 commit 1c152a7

File tree

5 files changed

+5351
-12
lines changed

5 files changed

+5351
-12
lines changed

TicTacToe_JS/.babelrc

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
{
2-
"presets": ["es2015", "react"]
3-
}
2+
"presets": [
3+
"@babel/preset-env",
4+
"@babel/preset-react"
5+
]
6+
}

TicTacToe_JS/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
<meta charset="utf-8" />
55
<title>TicTacToe with TypeScript and React</title>
66
<link rel="stylesheet" href="css/style.css">
7-
<script src="./node_modules/react/dist/react.js"></script>
8-
<script src="./node_modules/react-dom/dist/react-dom.js"></script>
7+
<script src="./node_modules/react/umd/react.production.min.js"></script>
8+
<script src="./node_modules/react-dom/umd/react-dom.production.min.js"></script>
99
</head>
1010
<body>
1111
<div id="content"></div>

0 commit comments

Comments
 (0)