@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 +3 -2
- package/mininext/mininext.ts +3 -3
- package/package.json +1 -1
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(
|
|
152
|
+
module = await import(backendImportPath);
|
|
152
153
|
}
|
|
153
154
|
catch (error) {
|
|
154
155
|
await build();
|
|
155
156
|
// @ts-ignore
|
|
156
|
-
module = await import(
|
|
157
|
+
module = await import(backendImportPath);
|
|
157
158
|
}
|
|
158
159
|
return module.default;
|
|
159
160
|
}
|
package/mininext/mininext.ts
CHANGED
|
@@ -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(
|
|
165
|
+
module = await import(backendImportPath);
|
|
166
166
|
} catch (error) {
|
|
167
167
|
await build();
|
|
168
168
|
// @ts-ignore
|
|
169
|
-
module = await import(
|
|
169
|
+
module = await import(backendImportPath);
|
|
170
170
|
}
|
|
171
171
|
return module.default as (w: any) => Promise<Response>;
|
|
172
172
|
}
|