Skip to content

Commit

Permalink
force no webpack in root
Browse files Browse the repository at this point in the history
provide webpack to react-dev-utils
  • Loading branch information
sokra committed Sep 16, 2021
1 parent 0b18825 commit a87e719
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 4 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
"alex": "9.1.0",
"amphtml-validator": "1.0.33",
"async-sema": "3.0.1",
"browserslist": "^4.14.7",
"browserslist": "4.16.6",
"cheerio": "0.22.0",
"clone": "2.1.2",
"cookie": "0.4.1",
Expand Down Expand Up @@ -141,6 +141,7 @@
"typescript": "4.3.4",
"wait-port": "0.2.2",
"web-streams-polyfill": "2.1.1",
"webpack": "link:./scripts/no-webpack",
"webpack-bundle-analyzer": "4.3.0",
"worker-loader": "3.0.7"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/react-refresh-utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,6 @@
},
"devDependencies": {
"react-refresh": "0.8.3",
"webpack": "5.52.0"
"webpack": "link:../../node_modules/webpack5"
}
}
5 changes: 5 additions & 0 deletions scripts/no-webpack/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"name": "webpack",
"version": "0.0.0",
"description": "This package exists to avoid a hoisted webpack version in the root node_modules. This allows to catch problems where paths in require-hook are missing."
}
12 changes: 10 additions & 2 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -6419,7 +6419,7 @@ browserify-zlib@0.2.0, browserify-zlib@^0.2.0:
dependencies:
pako "~1.0.5"

browserslist@4.16.6, browserslist@^4.0.0, browserslist@^4.14.5, browserslist@^4.14.7, browserslist@^4.15.0, browserslist@^4.16.6, browserslist@^4.16.7, browserslist@^4.3.6, browserslist@^4.6.4, browserslist@^4.8.3:
browserslist@4.16.6, browserslist@^4.0.0, browserslist@^4.14.5, browserslist@^4.15.0, browserslist@^4.16.6, browserslist@^4.16.7, browserslist@^4.3.6, browserslist@^4.6.4, browserslist@^4.8.3:
version "4.16.6"
resolved "https://registry.yarnpkg.com/browserslist/-/browserslist-4.16.6.tgz#d7901277a5a88e554ed305b183ec9b0c08f66fa2"
integrity sha512-Wspk/PqO+4W9qp5iUTJsa1B/QrYn1keNCcEP5OvP7WBwT4KaDly0uONYmC6Xa3Z5IqnUgS0KcgLYu1l74x0ZXQ==
Expand Down Expand Up @@ -20064,7 +20064,7 @@ webpack-sources@^3.2.0:
watchpack "^1.7.4"
webpack-sources "^1.4.1"

"webpack5@npm:webpack@5.52.0", webpack@5.52.0:
"webpack5@npm:webpack@5.52.0":
version "5.52.0"
resolved "https://registry.yarnpkg.com/webpack/-/webpack-5.52.0.tgz#88d997c2c3ebb62abcaa453d2a26e0fd917c71a3"
integrity sha512-yRZOat8jWGwBwHpco3uKQhVU7HYaNunZiJ4AkAVQkPCUGoZk/tiIXiwG+8HIy/F+qsiZvSOa+GLQOj3q5RKRYg==
Expand Down Expand Up @@ -20094,6 +20094,14 @@ webpack-sources@^3.2.0:
watchpack "^2.2.0"
webpack-sources "^3.2.0"

"webpack@link:./scripts/no-webpack":
version "0.0.0"
uid ""

"webpack@link:node_modules/webpack5":
version "0.0.0"
uid ""

websocket-driver@>=0.5.1:
version "0.7.3"
resolved "https://registry.yarnpkg.com/websocket-driver/-/websocket-driver-0.7.3.tgz#a2d4e0d4f4f116f1e6297eba58b05d430100e9f9"
Expand Down

0 comments on commit a87e719

Please sign in to comment.