Skip to content

Commit ed53dcb

Browse files
committed
update examples
1 parent f07bd9d commit ed53dcb

File tree

5 files changed

+24
-23
lines changed

5 files changed

+24
-23
lines changed

examples/all-possible-containers/package.json

+4-3
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,12 @@
1616
"main": "src/index.js",
1717
"scripts": {
1818
"build": "cross-env NODE_ENV=production webpack -p",
19-
"start": "webpack-serve --port 8080 --host 0.0.0.0"
19+
"start": "webpack-serve --port 8080 --host 0.0.0.0",
20+
"start:link": "cp -R ../../dist ./node_modules/react-hot-loader && cp -R ../../*.js ./node_modules/react-hot-loader"
2021
},
2122
"dependencies": {
22-
"react": "^16.7.0-alpha.2",
23-
"react-dom": "^16.7.0-alpha.2"
23+
"react": "^16.8.6",
24+
"react-dom": "^16.8.6"
2425
},
2526
"devDependencies": {
2627
"@babel/core": "^7.0.0",

examples/all-possible-containers/webpack.config.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,10 @@ module.exports = {
6767
resolve: {
6868
extensions: ['.ts', '.tsx', '.js', '.jsx'],
6969
alias: {
70-
react: path.resolve(path.join(__dirname, './node_modules/react')),
71-
'react-dom': path.resolve(path.join(__dirname, './node_modules/react-dom')),
72-
'react-hot-loader': path.resolve(path.join(__dirname, './node_modules/react-hot-loader')),
73-
'babel-core': path.resolve(path.join(__dirname, './node_modules/@babel/core')),
70+
// react: path.resolve(path.join(__dirname, './node_modules/react')),
71+
// 'react-dom': path.resolve(path.join(__dirname, './node_modules/react-dom')),
72+
// 'react-hot-loader': path.resolve(path.join(__dirname, './node_modules/react-hot-loader')),
73+
// 'babel-core': path.resolve(path.join(__dirname, './node_modules/@babel/core')),
7474
},
7575
},
7676
bail: true, // Fail out on the first error instead of tolerating it

examples/all-possible-containers/yarn.lock

+14-14
Original file line numberDiff line numberDiff line change
@@ -5755,15 +5755,15 @@ rc@^1.0.1, rc@^1.1.6, rc@^1.1.7:
57555755
minimist "^1.2.0"
57565756
strip-json-comments "~2.0.1"
57575757

5758-
react-dom@^16.7.0-alpha.2:
5759-
version "16.7.0-alpha.2"
5760-
resolved "https://registry.yarnpkg.com/react-dom/-/react-dom-16.7.0-alpha.2.tgz#16632880ed43676315991d8b412cce6975a30282"
5761-
integrity sha512-o0mMw8jBlwHjGZEy/vvKd/6giAX0+skREMOTs3/QHmgi+yAhUClp4My4Z9lsKy3SXV+03uPdm1l/QM7NTcGuMw==
5758+
react-dom@^16.8.6:
5759+
version "16.8.6"
5760+
resolved "https://registry.yarnpkg.com/react-dom/-/react-dom-16.8.6.tgz#71d6303f631e8b0097f56165ef608f051ff6e10f"
5761+
integrity sha512-1nL7PIq9LTL3fthPqwkvr2zY7phIPjYrT0jp4HjyEQrEROnw4dG41VVwi/wfoCneoleqrNX7iAD+pXebJZwrwA==
57625762
dependencies:
57635763
loose-envify "^1.1.0"
57645764
object-assign "^4.1.1"
57655765
prop-types "^15.6.2"
5766-
scheduler "^0.12.0-alpha.2"
5766+
scheduler "^0.13.6"
57675767

57685768
57695769
version "4.3.10"
@@ -5782,15 +5782,15 @@ react-lifecycles-compat@^3.0.4:
57825782
resolved "https://registry.yarnpkg.com/react-lifecycles-compat/-/react-lifecycles-compat-3.0.4.tgz#4f1a273afdfc8f3488a8c516bfda78f872352362"
57835783
integrity sha512-fBASbA6LnOU9dOU2eW7aQ8xmYBSXUIWr+UmF9b1efZBazGNO+rcXT/icdKnYm2pTwcRylVUYwW7H1PHfLekVzA==
57845784

5785-
react@^16.7.0-alpha.2:
5786-
version "16.7.0-alpha.2"
5787-
resolved "https://registry.yarnpkg.com/react/-/react-16.7.0-alpha.2.tgz#924f2ae843a46ea82d104a8def7a599fbf2c78ce"
5788-
integrity sha512-Xh1CC8KkqIojhC+LFXd21jxlVtzoVYdGnQAi/I2+dxbmos9ghbx5TQf9/nDxc4WxaFfUQJkya0w1k6rMeyIaxQ==
5785+
react@^16.8.6:
5786+
version "16.8.6"
5787+
resolved "https://registry.yarnpkg.com/react/-/react-16.8.6.tgz#ad6c3a9614fd3a4e9ef51117f54d888da01f2bbe"
5788+
integrity sha512-pC0uMkhLaHm11ZSJULfOBqV4tIZkx87ZLvbbQYunNixAAvjnC+snJCg0XQXn9VIsttVsbZP/H/ewzgsd5fxKXw==
57895789
dependencies:
57905790
loose-envify "^1.1.0"
57915791
object-assign "^4.1.1"
57925792
prop-types "^15.6.2"
5793-
scheduler "^0.12.0-alpha.2"
5793+
scheduler "^0.13.6"
57945794

57955795
read-chunk@^2.1.0:
57965796
version "2.1.0"
@@ -6212,10 +6212,10 @@ sax@^1.2.4:
62126212
resolved "https://registry.yarnpkg.com/sax/-/sax-1.2.4.tgz#2816234e2378bddc4e5354fab5caa895df7100d9"
62136213
integrity sha512-NqVDv9TpANUjFm0N8uM5GxL36UgKi9/atZw+x7YFnQ8ckwFGKrl4xX4yWtrey3UJm5nP1kUbnYgLopqWNSRhWw==
62146214

6215-
scheduler@^0.12.0-alpha.2:
6216-
version "0.12.0-alpha.3"
6217-
resolved "https://registry.yarnpkg.com/scheduler/-/scheduler-0.12.0-alpha.3.tgz#59afcaba1cb79e3e8bee91de94eb8f42c9152c2b"
6218-
integrity sha512-KADuBlOWSrT/DCt/oA+NgsNamRCsfz7wj+leaeGjGHipNClsqhjOPogKkJgem6WLAv/QzxW8bE7zlGc9OxiYSQ==
6215+
scheduler@^0.13.6:
6216+
version "0.13.6"
6217+
resolved "https://registry.yarnpkg.com/scheduler/-/scheduler-0.13.6.tgz#466a4ec332467b31a91b9bf74e5347072e4cd889"
6218+
integrity sha512-IWnObHt413ucAYKsD9J1QShUKkbKLQQHdxRyw73sw4FN26iWr3DY/H34xGPe4nmL1DwXyWmSWmMrA9TfQbE/XQ==
62196219
dependencies:
62206220
loose-envify "^1.1.0"
62216221
object-assign "^4.1.1"

examples/styled-components/src/App.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ const Hook = () => {
4949

5050
React.useEffect(
5151
() => {
52-
console.log('hot effected 0');
52+
console.log('hot effected');
5353
setState(state => ({
5454
x: state.x + 0.5,
5555
}));

examples/styled-components/webpack.config.babel.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ module.exports = {
1414
module: {
1515
rules: [
1616
{
17-
exclude: /node_modules|packages/, // should work without exclude
17+
exclude: /packages/, // should work without exclude
1818
test: /\.js$/,
1919
use: ['react-hot-loader/webpack', 'babel-loader'],
2020
},

0 commit comments

Comments
 (0)