File tree 3 files changed +30
-9
lines changed
3 files changed +30
-9
lines changed Original file line number Diff line number Diff line change 4
4
* See: https://www.gatsbyjs.org/docs/node-apis/
5
5
*/
6
6
7
- // You can delete this file if you're not using it
7
+ exports . onCreateWebpackConfig = ( { stage, actions } ) => {
8
+ if ( stage . startsWith ( 'develop' ) ) {
9
+ actions . setWebpackConfig ( {
10
+ resolve : {
11
+ alias : {
12
+ 'react-dom' : '@hot-loader/react-dom' ,
13
+ } ,
14
+ } ,
15
+ } ) ;
16
+ }
17
+ } ;
Original file line number Diff line number Diff line change 74
74
"@commitlint/cli" : " 8.3.5" ,
75
75
"@commitlint/config-conventional" : " 8.3.4" ,
76
76
"@cypress/browserify-preprocessor" : " 2.1.4" ,
77
+ "@hot-loader/react-dom" : " 16.11.0" ,
77
78
"@testing-library/cypress" : " 5.3.0" ,
78
79
"@types/color-string" : " 1.5.0" ,
79
80
"@types/cypress-axe" : " 0.4.0" ,
Original file line number Diff line number Diff line change 2103
2103
dependencies:
2104
2104
"@hapi/hoek" "^8.3.0"
2105
2105
2106
+
2107
+ version "16.11.0"
2108
+ resolved "https://registry.yarnpkg.com/@hot-loader/react-dom/-/react-dom-16.11.0.tgz#c0b483923b289db5431516f56ee2a69448ebf9bd"
2109
+ integrity sha512-cIOVB8YgT4EVCNiXK+gGuYl6adW/TKlW3N7GvgY5QgpL2NTWagF/oJxVscHSdR3O7NjJsoxdseB5spqwCHNIhA==
2110
+ dependencies:
2111
+ loose-envify "^1.1.0"
2112
+ object-assign "^4.1.1"
2113
+ prop-types "^15.6.2"
2114
+ scheduler "^0.17.0"
2115
+
2106
2116
"@jest/types@^24.9.0":
2107
2117
version "24.9.0"
2108
2118
resolved "https://registry.yarnpkg.com/@jest/types/-/types-24.9.0.tgz#63cb26cb7500d069e5a389441a7c6ab5e909fc59"
@@ -11297,7 +11307,6 @@ npm@^6.10.3:
11297
11307
cmd-shim "^3.0.3"
11298
11308
columnify "~1.5.4"
11299
11309
config-chain "^1.1.12"
11300
- debuglog "*"
11301
11310
detect-indent "~5.0.0"
11302
11311
detect-newline "^2.1.0"
11303
11312
dezalgo "~1.0.3"
@@ -11312,7 +11321,6 @@ npm@^6.10.3:
11312
11321
has-unicode "~2.0.1"
11313
11322
hosted-git-info "^2.8.5"
11314
11323
iferr "^1.0.2"
11315
- imurmurhash "*"
11316
11324
infer-owner "^1.0.4"
11317
11325
inflight "~1.0.6"
11318
11326
inherits "^2.0.4"
@@ -11331,14 +11339,8 @@ npm@^6.10.3:
11331
11339
libnpx "^10.2.0"
11332
11340
lock-verify "^2.1.0"
11333
11341
lockfile "^1.0.4"
11334
- lodash._baseindexof "*"
11335
11342
lodash._baseuniq "~4.6.0"
11336
- lodash._bindcallback "*"
11337
- lodash._cacheindexof "*"
11338
- lodash._createcache "*"
11339
- lodash._getnative "*"
11340
11343
lodash.clonedeep "~4.5.0"
11341
- lodash.restparam "*"
11342
11344
lodash.union "~4.6.0"
11343
11345
lodash.uniq "~4.5.0"
11344
11346
lodash.without "~4.4.0"
@@ -13810,6 +13812,14 @@ sax@^1.2.4, sax@~1.2.4:
13810
13812
resolved "https://registry.yarnpkg.com/sax/-/sax-1.2.4.tgz#2816234e2378bddc4e5354fab5caa895df7100d9"
13811
13813
integrity sha512-NqVDv9TpANUjFm0N8uM5GxL36UgKi9/atZw+x7YFnQ8ckwFGKrl4xX4yWtrey3UJm5nP1kUbnYgLopqWNSRhWw==
13812
13814
13815
+ scheduler@^0.17.0:
13816
+ version "0.17.0"
13817
+ resolved "https://registry.yarnpkg.com/scheduler/-/scheduler-0.17.0.tgz#7c9c673e4ec781fac853927916d1c426b6f3ddfe"
13818
+ integrity sha512-7rro8Io3tnCPuY4la/NuI5F2yfESpnfZyT6TtkXnSWVkcu0BCDJ+8gk5ozUaFaxpIyNuWAPXrH0yFcSi28fnDA==
13819
+ dependencies:
13820
+ loose-envify "^1.1.0"
13821
+ object-assign "^4.1.1"
13822
+
13813
13823
scheduler@^0.18.0:
13814
13824
version "0.18.0"
13815
13825
resolved "https://registry.yarnpkg.com/scheduler/-/scheduler-0.18.0.tgz#5901ad6659bc1d8f3fdaf36eb7a67b0d6746b1c4"
You can’t perform that action at this time.
0 commit comments