oxidejs 0.1.2 → 0.1.4

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.mjs CHANGED
@@ -1,2 +1,2 @@
1
- import { a as useEnv, i as useCtx, n as unpluginFactory, o as useFetchCtx, r as vite, s as useRequest, t as oxidejs } from "./src-w2Bg2KiM.mjs";
1
+ import { a as useEnv, i as useCtx, n as unpluginFactory, o as useFetchCtx, r as vite, s as useRequest, t as oxidejs } from "./src-CU7sBRGf.mjs";
2
2
  export { oxidejs as default, oxidejs, unpluginFactory, useCtx, useEnv, useFetchCtx, useRequest, vite };
package/dist/rsbuild.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { t as oxidejs } from "./src-w2Bg2KiM.mjs";
1
+ import { t as oxidejs } from "./src-CU7sBRGf.mjs";
2
2
  //#region src/rsbuild.ts
3
3
  var rsbuild_default = oxidejs.rsbuild;
4
4
  //#endregion
@@ -186,7 +186,9 @@ function __rel(pathname, spa) {
186
186
  if (file.includes("\0")) return;
187
187
  if (file === "/" || spa) file = "/index.html";
188
188
  if (!file.startsWith("/") || file.split("/").includes("..")) return;
189
- return file.slice(1);
189
+ const rel = file.slice(1);
190
+ if (rel.startsWith("/")) return;
191
+ return rel;
190
192
  }
191
193
  async function __asset(request, spa) {
192
194
  const file = __rel(new URL(request.url).pathname, spa);
@@ -500,7 +502,7 @@ function applyViteEnvironments(config, opts) {
500
502
  resolve: celld ? {
501
503
  conditions: ["worker"],
502
504
  noExternal: true
503
- } : { noExternal: true },
505
+ } : { noExternal: ["tacho"] },
504
506
  ssr: celld ? {
505
507
  target: "webworker",
506
508
  noExternal: true,
package/dist/vite.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { t as oxidejs } from "./src-w2Bg2KiM.mjs";
1
+ import { t as oxidejs } from "./src-CU7sBRGf.mjs";
2
2
  //#region src/vite.ts
3
3
  var vite_default = oxidejs.vite;
4
4
  //#endregion
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oxidejs",
3
- "version": "0.1.2",
3
+ "version": "0.1.4",
4
4
  "description": "Vite/Rsbuild plugin. One build → dist/server.js + optional client. Server actions via *.server.ts.",
5
5
  "keywords": [
6
6
  "cloudflare",