@spirobel/mininext 0.2.12 → 0.2.13

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/mininext.js CHANGED
@@ -146,14 +146,15 @@ const standardDevReloader = html `
146
146
  `;
147
147
  async function makeEntrypoint() {
148
148
  let module;
149
+ const backendImportPath = projectRoot() + "/dist/backend.js";
149
150
  try {
150
151
  // @ts-ignore
151
- module = await import("./dist/backend.js");
152
+ module = await import(backendImportPath);
152
153
  }
153
154
  catch (error) {
154
155
  await build();
155
156
  // @ts-ignore
156
- module = await import("./dist/backend.js");
157
+ module = await import(backendImportPath);
157
158
  }
158
159
  return module.default;
159
160
  }
@@ -159,14 +159,14 @@ const standardDevReloader = html`
159
159
  `;
160
160
  async function makeEntrypoint() {
161
161
  let module;
162
-
162
+ const backendImportPath = projectRoot() + "/dist/backend.js";
163
163
  try {
164
164
  // @ts-ignore
165
- module = await import("./dist/backend.js");
165
+ module = await import(backendImportPath);
166
166
  } catch (error) {
167
167
  await build();
168
168
  // @ts-ignore
169
- module = await import("./dist/backend.js");
169
+ module = await import(backendImportPath);
170
170
  }
171
171
  return module.default as (w: any) => Promise<Response>;
172
172
  }
package/package.json CHANGED
@@ -12,7 +12,7 @@
12
12
 
13
13
  },
14
14
  "files": ["dist", "mininext"],
15
- "version": "0.2.12",
15
+ "version": "0.2.13",
16
16
  "devDependencies": {
17
17
  "@types/bun": "latest"
18
18
  },