@eslym/sveltekit-adapter-bun 2.0.2 → 2.0.3

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.
Files changed (2) hide show
  1. package/dist/index.js +5 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -419,6 +419,9 @@ function get_imports_n(imports, declared, import_path) {
419
419
  }
420
420
  return n;
421
421
  }
422
+ function normalize_path(path) {
423
+ return path.replace(/\\/g, "/");
424
+ }
422
425
  async function build_assets_js(base_path, client_files, prerendered_pages, immutable_prefix, ignores) {
423
426
  const imports = [];
424
427
  const records = [];
@@ -426,7 +429,8 @@ async function build_assets_js(base_path, client_files, prerendered_pages, immut
426
429
  for await (const path of client_files) {
427
430
  if (ignores.some((ignore) => ignore.match(path)))
428
431
  continue;
429
- records.push(await build_asset_record(declared, imports, path.replace(/^(?:\.?\/)?/, "/"), join(base_path, "client", path), "./" + join("client", path), immutable_prefix));
432
+ const normalized = normalize_path(path);
433
+ records.push(await build_asset_record(declared, imports, normalized.replace(/^(?:\.?\/)?/, "/"), join(base_path, "client", normalized), "./" + join("client", normalized), immutable_prefix));
430
434
  }
431
435
  for await (const [pathname, target] of prerendered_pages) {
432
436
  records.push(await build_asset_record(declared, imports, pathname, join(base_path, "prerendered", target.file), "./" + join("prerendered", target.file), immutable_prefix));
package/package.json CHANGED
@@ -34,5 +34,5 @@
34
34
  "@rollup/plugin-node-resolve": "^15.3.1",
35
35
  "rollup": "^4.34.8"
36
36
  },
37
- "version": "2.0.2"
37
+ "version": "2.0.3"
38
38
  }