Make webpack respect dependencies vs peerDependencies when deciding dependency is external (#7545)

Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
This commit is contained in:
Janne Savolainen authored and GitHub committed 2023-04-13 16:01:43 +03:00
1 parent adf67fb6a7
commit 7dc0ce7192
19 files changed
+231 -44

No files matched your search

@@ -6,10 +6,6 @@ Array [
"entry": Object {
"index": "./index.ts",
},
"externals": Array [
[Function],
[Function],
],
"externalsPresets": Object {
"node": true,
},
@@ -37,6 +33,8 @@ Array [
"maxEntrypointSize": 100000,
},
"plugins": Array [
MakePeerDependenciesExternalPlugin {},
ProtectFromImportingNonDependencies {},
ForkTsCheckerWebpackPlugin {
"options": Object {
"typescript": Object {
@@ -58,6 +56,7 @@ Array [
"extensions": Array [
".ts",
".tsx",
".js",
],
},
"target": "node",
@@ -66,10 +65,6 @@ Array [
"entry": Object {
"index": "./some-entrypoint/index.ts",
},
"externals": Array [
[Function],
[Function],
],
"externalsPresets": Object {
"node": true,
},
@@ -97,6 +92,8 @@ Array [
"maxEntrypointSize": 100000,
},
"plugins": Array [
MakePeerDependenciesExternalPlugin {},
ProtectFromImportingNonDependencies {},
ForkTsCheckerWebpackPlugin {
"options": Object {
"typescript": Object {
@@ -118,6 +115,7 @@ Array [
"extensions": Array [
".ts",
".tsx",
".js",
],
},
"target": "node",
@@ -126,10 +124,6 @@ Array [
"entry": Object {
"index": "./some-other-entrypoint/index.ts",
},
"externals": Array [
[Function],
[Function],
],
"externalsPresets": Object {
"node": true,
},
@@ -205,6 +199,8 @@ Array [
"maxEntrypointSize": 100000,
},
"plugins": Array [
MakePeerDependenciesExternalPlugin {},
ProtectFromImportingNonDependencies {},
ForkTsCheckerWebpackPlugin {
"options": Object {
"typescript": Object {
@@ -241,6 +237,7 @@ Array [
"extensions": Array [
".ts",
".tsx",
".js",
],
},
"target": "node",