@webtypen/webframez-react 0.0.19 → 0.0.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/http.cjs +11 -4
- package/dist/http.js +11 -4
- package/dist/index.cjs +11 -4
- package/dist/index.js +11 -4
- package/dist/webframez-core.cjs +11 -4
- package/dist/webframez-core.js +11 -4
- package/package.json +1 -1
package/dist/http.cjs
CHANGED
|
@@ -941,6 +941,11 @@ function normalizeClientManifest(manifest, options) {
|
|
|
941
941
|
import_node_path3.default.resolve(options.cwd, "node_modules"),
|
|
942
942
|
import_node_path3.default.resolve(options.distRootDir, "..", "..", "node_modules")
|
|
943
943
|
]);
|
|
944
|
+
const addAlias = (aliasKey, value) => {
|
|
945
|
+
if (!(aliasKey in normalized)) {
|
|
946
|
+
normalized[aliasKey] = value;
|
|
947
|
+
}
|
|
948
|
+
};
|
|
944
949
|
for (const [key, value] of Object.entries(manifest)) {
|
|
945
950
|
if (!key.startsWith("file://")) {
|
|
946
951
|
continue;
|
|
@@ -957,12 +962,14 @@ function normalizeClientManifest(manifest, options) {
|
|
|
957
962
|
continue;
|
|
958
963
|
}
|
|
959
964
|
const relativeModulePath = absolutePath.slice(markerIndex + marker.length);
|
|
965
|
+
const relativeModulePathPosix = relativeModulePath.split(import_node_path3.default.sep).join("/");
|
|
966
|
+
addAlias(`./node_modules/${relativeModulePathPosix}`, value);
|
|
967
|
+
addAlias(`node_modules/${relativeModulePathPosix}`, value);
|
|
968
|
+
addAlias(absolutePath, value);
|
|
960
969
|
for (const nodeModulesDir of candidateNodeModulesDirs) {
|
|
961
970
|
const aliasPath = import_node_path3.default.join(nodeModulesDir, relativeModulePath);
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
normalized[aliasKey] = value;
|
|
965
|
-
}
|
|
971
|
+
addAlias(aliasPath, value);
|
|
972
|
+
addAlias((0, import_node_url.pathToFileURL)(aliasPath).href, value);
|
|
966
973
|
}
|
|
967
974
|
}
|
|
968
975
|
return normalized;
|
package/dist/http.js
CHANGED
|
@@ -916,6 +916,11 @@ function normalizeClientManifest(manifest, options) {
|
|
|
916
916
|
path3.resolve(options.cwd, "node_modules"),
|
|
917
917
|
path3.resolve(options.distRootDir, "..", "..", "node_modules")
|
|
918
918
|
]);
|
|
919
|
+
const addAlias = (aliasKey, value) => {
|
|
920
|
+
if (!(aliasKey in normalized)) {
|
|
921
|
+
normalized[aliasKey] = value;
|
|
922
|
+
}
|
|
923
|
+
};
|
|
919
924
|
for (const [key, value] of Object.entries(manifest)) {
|
|
920
925
|
if (!key.startsWith("file://")) {
|
|
921
926
|
continue;
|
|
@@ -932,12 +937,14 @@ function normalizeClientManifest(manifest, options) {
|
|
|
932
937
|
continue;
|
|
933
938
|
}
|
|
934
939
|
const relativeModulePath = absolutePath.slice(markerIndex + marker.length);
|
|
940
|
+
const relativeModulePathPosix = relativeModulePath.split(path3.sep).join("/");
|
|
941
|
+
addAlias(`./node_modules/${relativeModulePathPosix}`, value);
|
|
942
|
+
addAlias(`node_modules/${relativeModulePathPosix}`, value);
|
|
943
|
+
addAlias(absolutePath, value);
|
|
935
944
|
for (const nodeModulesDir of candidateNodeModulesDirs) {
|
|
936
945
|
const aliasPath = path3.join(nodeModulesDir, relativeModulePath);
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
normalized[aliasKey] = value;
|
|
940
|
-
}
|
|
946
|
+
addAlias(aliasPath, value);
|
|
947
|
+
addAlias(pathToFileURL(aliasPath).href, value);
|
|
941
948
|
}
|
|
942
949
|
}
|
|
943
950
|
return normalized;
|
package/dist/index.cjs
CHANGED
|
@@ -978,6 +978,11 @@ function normalizeClientManifest(manifest, options) {
|
|
|
978
978
|
import_node_path3.default.resolve(options.cwd, "node_modules"),
|
|
979
979
|
import_node_path3.default.resolve(options.distRootDir, "..", "..", "node_modules")
|
|
980
980
|
]);
|
|
981
|
+
const addAlias = (aliasKey, value) => {
|
|
982
|
+
if (!(aliasKey in normalized)) {
|
|
983
|
+
normalized[aliasKey] = value;
|
|
984
|
+
}
|
|
985
|
+
};
|
|
981
986
|
for (const [key, value] of Object.entries(manifest)) {
|
|
982
987
|
if (!key.startsWith("file://")) {
|
|
983
988
|
continue;
|
|
@@ -994,12 +999,14 @@ function normalizeClientManifest(manifest, options) {
|
|
|
994
999
|
continue;
|
|
995
1000
|
}
|
|
996
1001
|
const relativeModulePath = absolutePath.slice(markerIndex + marker.length);
|
|
1002
|
+
const relativeModulePathPosix = relativeModulePath.split(import_node_path3.default.sep).join("/");
|
|
1003
|
+
addAlias(`./node_modules/${relativeModulePathPosix}`, value);
|
|
1004
|
+
addAlias(`node_modules/${relativeModulePathPosix}`, value);
|
|
1005
|
+
addAlias(absolutePath, value);
|
|
997
1006
|
for (const nodeModulesDir of candidateNodeModulesDirs) {
|
|
998
1007
|
const aliasPath = import_node_path3.default.join(nodeModulesDir, relativeModulePath);
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
normalized[aliasKey] = value;
|
|
1002
|
-
}
|
|
1008
|
+
addAlias(aliasPath, value);
|
|
1009
|
+
addAlias((0, import_node_url.pathToFileURL)(aliasPath).href, value);
|
|
1003
1010
|
}
|
|
1004
1011
|
}
|
|
1005
1012
|
return normalized;
|
package/dist/index.js
CHANGED
|
@@ -942,6 +942,11 @@ function normalizeClientManifest(manifest, options) {
|
|
|
942
942
|
path3.resolve(options.cwd, "node_modules"),
|
|
943
943
|
path3.resolve(options.distRootDir, "..", "..", "node_modules")
|
|
944
944
|
]);
|
|
945
|
+
const addAlias = (aliasKey, value) => {
|
|
946
|
+
if (!(aliasKey in normalized)) {
|
|
947
|
+
normalized[aliasKey] = value;
|
|
948
|
+
}
|
|
949
|
+
};
|
|
945
950
|
for (const [key, value] of Object.entries(manifest)) {
|
|
946
951
|
if (!key.startsWith("file://")) {
|
|
947
952
|
continue;
|
|
@@ -958,12 +963,14 @@ function normalizeClientManifest(manifest, options) {
|
|
|
958
963
|
continue;
|
|
959
964
|
}
|
|
960
965
|
const relativeModulePath = absolutePath.slice(markerIndex + marker.length);
|
|
966
|
+
const relativeModulePathPosix = relativeModulePath.split(path3.sep).join("/");
|
|
967
|
+
addAlias(`./node_modules/${relativeModulePathPosix}`, value);
|
|
968
|
+
addAlias(`node_modules/${relativeModulePathPosix}`, value);
|
|
969
|
+
addAlias(absolutePath, value);
|
|
961
970
|
for (const nodeModulesDir of candidateNodeModulesDirs) {
|
|
962
971
|
const aliasPath = path3.join(nodeModulesDir, relativeModulePath);
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
normalized[aliasKey] = value;
|
|
966
|
-
}
|
|
972
|
+
addAlias(aliasPath, value);
|
|
973
|
+
addAlias(pathToFileURL(aliasPath).href, value);
|
|
967
974
|
}
|
|
968
975
|
}
|
|
969
976
|
return normalized;
|
package/dist/webframez-core.cjs
CHANGED
|
@@ -944,6 +944,11 @@ function normalizeClientManifest(manifest, options) {
|
|
|
944
944
|
import_node_path3.default.resolve(options.cwd, "node_modules"),
|
|
945
945
|
import_node_path3.default.resolve(options.distRootDir, "..", "..", "node_modules")
|
|
946
946
|
]);
|
|
947
|
+
const addAlias = (aliasKey, value) => {
|
|
948
|
+
if (!(aliasKey in normalized)) {
|
|
949
|
+
normalized[aliasKey] = value;
|
|
950
|
+
}
|
|
951
|
+
};
|
|
947
952
|
for (const [key, value] of Object.entries(manifest)) {
|
|
948
953
|
if (!key.startsWith("file://")) {
|
|
949
954
|
continue;
|
|
@@ -960,12 +965,14 @@ function normalizeClientManifest(manifest, options) {
|
|
|
960
965
|
continue;
|
|
961
966
|
}
|
|
962
967
|
const relativeModulePath = absolutePath.slice(markerIndex + marker.length);
|
|
968
|
+
const relativeModulePathPosix = relativeModulePath.split(import_node_path3.default.sep).join("/");
|
|
969
|
+
addAlias(`./node_modules/${relativeModulePathPosix}`, value);
|
|
970
|
+
addAlias(`node_modules/${relativeModulePathPosix}`, value);
|
|
971
|
+
addAlias(absolutePath, value);
|
|
963
972
|
for (const nodeModulesDir of candidateNodeModulesDirs) {
|
|
964
973
|
const aliasPath = import_node_path3.default.join(nodeModulesDir, relativeModulePath);
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
normalized[aliasKey] = value;
|
|
968
|
-
}
|
|
974
|
+
addAlias(aliasPath, value);
|
|
975
|
+
addAlias((0, import_node_url.pathToFileURL)(aliasPath).href, value);
|
|
969
976
|
}
|
|
970
977
|
}
|
|
971
978
|
return normalized;
|
package/dist/webframez-core.js
CHANGED
|
@@ -916,6 +916,11 @@ function normalizeClientManifest(manifest, options) {
|
|
|
916
916
|
path3.resolve(options.cwd, "node_modules"),
|
|
917
917
|
path3.resolve(options.distRootDir, "..", "..", "node_modules")
|
|
918
918
|
]);
|
|
919
|
+
const addAlias = (aliasKey, value) => {
|
|
920
|
+
if (!(aliasKey in normalized)) {
|
|
921
|
+
normalized[aliasKey] = value;
|
|
922
|
+
}
|
|
923
|
+
};
|
|
919
924
|
for (const [key, value] of Object.entries(manifest)) {
|
|
920
925
|
if (!key.startsWith("file://")) {
|
|
921
926
|
continue;
|
|
@@ -932,12 +937,14 @@ function normalizeClientManifest(manifest, options) {
|
|
|
932
937
|
continue;
|
|
933
938
|
}
|
|
934
939
|
const relativeModulePath = absolutePath.slice(markerIndex + marker.length);
|
|
940
|
+
const relativeModulePathPosix = relativeModulePath.split(path3.sep).join("/");
|
|
941
|
+
addAlias(`./node_modules/${relativeModulePathPosix}`, value);
|
|
942
|
+
addAlias(`node_modules/${relativeModulePathPosix}`, value);
|
|
943
|
+
addAlias(absolutePath, value);
|
|
935
944
|
for (const nodeModulesDir of candidateNodeModulesDirs) {
|
|
936
945
|
const aliasPath = path3.join(nodeModulesDir, relativeModulePath);
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
normalized[aliasKey] = value;
|
|
940
|
-
}
|
|
946
|
+
addAlias(aliasPath, value);
|
|
947
|
+
addAlias(pathToFileURL(aliasPath).href, value);
|
|
941
948
|
}
|
|
942
949
|
}
|
|
943
950
|
return normalized;
|