@absolutejs/absolute 0.19.0-beta.108 → 0.19.0-beta.109
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/.absolutejs/tsconfig.tsbuildinfo +1 -1
- package/dist/build.js +4 -14
- package/dist/build.js.map +3 -3
- package/dist/index.js +4 -14
- package/dist/index.js.map +3 -3
- package/package.json +1 -1
package/dist/build.js
CHANGED
|
@@ -415,19 +415,9 @@ var indexContentCache, resolveDevClientDir = () => {
|
|
|
415
415
|
`}`,
|
|
416
416
|
...isDev ? [
|
|
417
417
|
`
|
|
418
|
-
// Pre-warm the module
|
|
419
|
-
`//
|
|
420
|
-
|
|
421
|
-
`// instead of cold fetches (~500ms).`,
|
|
422
|
-
`if (typeof requestIdleCallback !== 'undefined') {`,
|
|
423
|
-
` requestIdleCallback(() => {`,
|
|
424
|
-
` import('/@src/${relative(process.cwd(), resolve(reactPagesDirectory, componentName + ".tsx")).replace(/\\/g, "/")}').catch(() => {});`,
|
|
425
|
-
` });`,
|
|
426
|
-
`} else {`,
|
|
427
|
-
` setTimeout(() => {`,
|
|
428
|
-
` import('/@src/${relative(process.cwd(), resolve(reactPagesDirectory, componentName + ".tsx")).replace(/\\/g, "/")}').catch(() => {});`,
|
|
429
|
-
` }, 1000);`,
|
|
430
|
-
`}`
|
|
418
|
+
// Pre-warm: import the page module from the module server`,
|
|
419
|
+
`// immediately so the browser caches all /@src/ URLs.`,
|
|
420
|
+
`import('/@src/${relative(process.cwd(), resolve(reactPagesDirectory, componentName + ".tsx")).replace(/\\/g, "/")}').catch(() => {});`
|
|
431
421
|
] : []
|
|
432
422
|
].join(`
|
|
433
423
|
`);
|
|
@@ -204923,5 +204913,5 @@ export {
|
|
|
204923
204913
|
build
|
|
204924
204914
|
};
|
|
204925
204915
|
|
|
204926
|
-
//# debugId=
|
|
204916
|
+
//# debugId=5313682BFB4A502164756E2164756E21
|
|
204927
204917
|
//# sourceMappingURL=build.js.map
|