@techninja/clearstack 0.3.48 → 0.3.49
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.
|
@@ -114,14 +114,14 @@ export function buildModulePreload(opts) {
|
|
|
114
114
|
|
|
115
115
|
// Vendor files from importmap — preload these first (no bare imports inside them)
|
|
116
116
|
const vendorPaths = [...new Set(Object.values(importMap))]
|
|
117
|
-
.filter((v) => v.startsWith('/') && v.
|
|
117
|
+
.filter((v) => v.startsWith('/') && v.includes('.js'));
|
|
118
118
|
|
|
119
119
|
// App modules safe to preload — exclude any that directly import a bare specifier
|
|
120
120
|
const appPaths = order.filter((m) => !hasBareImport.has(m));
|
|
121
121
|
|
|
122
122
|
const v = hashSuffix ? `?v=${hashSuffix}` : '';
|
|
123
123
|
const tags = [
|
|
124
|
-
...vendorPaths.map((p) => ` <link rel="modulepreload" href="${p
|
|
124
|
+
...vendorPaths.map((p) => ` <link rel="modulepreload" href="${p.includes('?') ? p : p + v}">`),
|
|
125
125
|
...appPaths.map((m) => ` <link rel="modulepreload" href="/${m}${v}">`),
|
|
126
126
|
].join('\n');
|
|
127
127
|
|
package/package.json
CHANGED