@marko/vite 2.2.10 → 2.2.11
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.js +6 -2
- package/dist/index.mjs +6 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -328,8 +328,12 @@ if (import.meta.hot) import.meta.hot.accept();`;
|
|
|
328
328
|
const browserManifest = {};
|
|
329
329
|
for (const entryId in serverManifest.entries) {
|
|
330
330
|
const fileName = serverManifest.entries[entryId];
|
|
331
|
-
|
|
332
|
-
|
|
331
|
+
let chunkId = fileName + htmlExt;
|
|
332
|
+
let chunk = bundle[chunkId];
|
|
333
|
+
if (!chunk) {
|
|
334
|
+
chunkId = chunkId.replace(/\//g, "\\");
|
|
335
|
+
chunk = bundle[chunkId];
|
|
336
|
+
}
|
|
333
337
|
if ((chunk == null ? void 0 : chunk.type) === "asset") {
|
|
334
338
|
browserManifest[entryId] = await (0, import_manifest_generator.generateDocManifest)(chunk.source.toString());
|
|
335
339
|
delete bundle[chunkId];
|
package/dist/index.mjs
CHANGED
|
@@ -291,8 +291,12 @@ if (import.meta.hot) import.meta.hot.accept();`;
|
|
|
291
291
|
const browserManifest = {};
|
|
292
292
|
for (const entryId in serverManifest.entries) {
|
|
293
293
|
const fileName = serverManifest.entries[entryId];
|
|
294
|
-
|
|
295
|
-
|
|
294
|
+
let chunkId = fileName + htmlExt;
|
|
295
|
+
let chunk = bundle[chunkId];
|
|
296
|
+
if (!chunk) {
|
|
297
|
+
chunkId = chunkId.replace(/\//g, "\\");
|
|
298
|
+
chunk = bundle[chunkId];
|
|
299
|
+
}
|
|
296
300
|
if ((chunk == null ? void 0 : chunk.type) === "asset") {
|
|
297
301
|
browserManifest[entryId] = await generateDocManifest(chunk.source.toString());
|
|
298
302
|
delete bundle[chunkId];
|
package/package.json
CHANGED