@openworkers/adapter-sveltekit 0.4.0 → 0.4.1
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/index.js +2 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -157,8 +157,8 @@ async function buildFunctionWorker(options) {
|
|
|
157
157
|
const files = path.join(adapterRoot, "dist");
|
|
158
158
|
const functionTemplate = path.join(files, "function-worker.js");
|
|
159
159
|
const libCookies = path.join(files, "../src/lib/cookies.js");
|
|
160
|
-
const svelteKitCookie = path.join(
|
|
161
|
-
const svelteKitRouting = path.join(
|
|
160
|
+
const svelteKitCookie = path.join(process.cwd(), "node_modules/@sveltejs/kit/src/runtime/server/cookie.js");
|
|
161
|
+
const svelteKitRouting = path.join(process.cwd(), "node_modules/@sveltejs/kit/src/utils/routing.js");
|
|
162
162
|
const external = ["node:*"];
|
|
163
163
|
if (!usesCookies) {
|
|
164
164
|
external.push("cookie");
|