@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 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
- const chunkId = fileName + htmlExt;
332
- const chunk = bundle[chunkId];
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
- const chunkId = fileName + htmlExt;
295
- const chunk = bundle[chunkId];
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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@marko/vite",
3
3
  "description": "A Marko plugin for Vite",
4
- "version": "2.2.10",
4
+ "version": "2.2.11",
5
5
  "author": "Dylan Piercey <dpiercey@ebay.com>",
6
6
  "bugs": "https://github.com/marko-js/vite/issues",
7
7
  "dependencies": {