rwsdk 1.0.0-beta.30-test.20251120213828 → 1.0.0-beta.31
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.
|
@@ -58,14 +58,12 @@ export const ssrBridgePlugin = ({ clientFiles, serverFiles, }) => {
|
|
|
58
58
|
config.optimizeDeps.esbuildOptions.plugins.push({
|
|
59
59
|
name: "rwsdk-ssr-external",
|
|
60
60
|
setup(build) {
|
|
61
|
-
console.log("[TIMING] rwsdk-ssr-external.setup: START - Plugin setup function called");
|
|
62
61
|
log("Setting up esbuild plugin to mark rwsdk/__ssr paths as external for worker");
|
|
63
62
|
build.onResolve({ filter: /.*$/ }, (args) => {
|
|
64
63
|
process.env.VERBOSE &&
|
|
65
64
|
log("Esbuild onResolve called for path=%s, args=%O", args.path, args);
|
|
66
65
|
if (args.path === "rwsdk/__ssr_bridge" ||
|
|
67
66
|
args.path.startsWith(VIRTUAL_SSR_PREFIX)) {
|
|
68
|
-
console.log(`[TIMING] rwsdk-ssr-external.onResolve: Intercepted ${args.path}`);
|
|
69
67
|
log("Marking as external: %s", args.path);
|
|
70
68
|
return {
|
|
71
69
|
path: args.path,
|
|
@@ -73,7 +71,6 @@ export const ssrBridgePlugin = ({ clientFiles, serverFiles, }) => {
|
|
|
73
71
|
};
|
|
74
72
|
}
|
|
75
73
|
});
|
|
76
|
-
console.log("[TIMING] rwsdk-ssr-external.setup: COMPLETE - onResolve hook registered");
|
|
77
74
|
},
|
|
78
75
|
});
|
|
79
76
|
log("Worker environment esbuild configuration complete");
|