@open-xchange/vite-plugin-ox-manifests 1.0.0 → 1.0.2

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.
@@ -1 +1 @@
1
- {"version":3,"file":"manifests.d.ts","sourceRoot":"","sources":["../../src/plugins/manifests.ts"],"names":[],"mappings":";AAyGA,wBAgGE"}
1
+ {"version":3,"file":"manifests.d.ts","sourceRoot":"","sources":["../../src/plugins/manifests.ts"],"names":[],"mappings":";AAyHA,wBAgGE"}
@@ -36,9 +36,9 @@ function getChunkOriginalFileName(chunk, root) {
36
36
  const queryIndex = name.indexOf('?');
37
37
  if (queryIndex >= 0)
38
38
  name = name.substring(0, queryIndex);
39
- // make relative to root
40
- if (name.startsWith(root + '/')) {
41
- name = name.substring(root.length + 1);
39
+ // make relative to root (handles both children and parents like ../node_modules)
40
+ if (path.isAbsolute(name)) {
41
+ name = path.relative(root, name);
42
42
  }
43
43
  return name;
44
44
  }
@@ -52,6 +52,8 @@ function getChunkOriginalFileName(chunk, root) {
52
52
  */
53
53
  function buildManifestFromBundle(bundle, root) {
54
54
  const manifest = {};
55
+ // Map output filenames to manifest keys so imports can be remapped
56
+ const fileNameToKey = {};
55
57
  for (const file in bundle) {
56
58
  const output = bundle[file];
57
59
  if (output.type !== 'chunk')
@@ -75,6 +77,17 @@ function buildManifestFromBundle(bundle, root) {
75
77
  if (viteMetadata?.importedAssets?.size)
76
78
  entry.assets = [...viteMetadata.importedAssets];
77
79
  manifest[src] = entry;
80
+ fileNameToKey[output.fileName] = src;
81
+ }
82
+ // Remap imports/dynamicImports from output filenames to manifest keys
83
+ for (const key in manifest) {
84
+ const entry = manifest[key];
85
+ if (entry.imports) {
86
+ entry.imports = entry.imports.map(imp => fileNameToKey[imp] ?? imp);
87
+ }
88
+ if (entry.dynamicImports) {
89
+ entry.dynamicImports = entry.dynamicImports.map(imp => fileNameToKey[imp] ?? imp);
90
+ }
78
91
  }
79
92
  // Also include assets
80
93
  for (const file in bundle) {
@@ -87,7 +100,10 @@ function buildManifestFromBundle(bundle, root) {
87
100
  const names = output.originalFileNames?.length
88
101
  ? output.originalFileNames
89
102
  : (output.names?.length ? output.names : []);
90
- for (const name of names) {
103
+ for (let name of names) {
104
+ // make absolute paths relative to root
105
+ if (path.isAbsolute(name))
106
+ name = path.relative(root, name);
91
107
  if (!manifest[name]) {
92
108
  manifest[name] = { file: output.fileName };
93
109
  }
@@ -1,6 +1,6 @@
1
1
  <?xml version="1.0" ?>
2
2
  <!DOCTYPE coverage SYSTEM "http://cobertura.sourceforge.net/xml/coverage-04.dtd">
3
- <coverage lines-valid="429" lines-covered="375" line-rate="0.8741" branches-valid="243" branches-covered="194" branch-rate="0.7983" timestamp="1773524784305" complexity="0" version="0.1">
3
+ <coverage lines-valid="439" lines-covered="384" line-rate="0.8747" branches-valid="253" branches-covered="202" branch-rate="0.7984" timestamp="1773755089635" complexity="0" version="0.1">
4
4
  <sources>
5
5
  <source>/home/db/Repositories/gitlab.com/openxchange/appsuite/web-foundation/tools/packages/vite-plugin-ox-manifests</source>
6
6
  </sources>
@@ -261,7 +261,7 @@
261
261
  </class>
262
262
  </classes>
263
263
  </package>
264
- <package name="dist.plugins" line-rate="0.925" branch-rate="0.8826999999999999">
264
+ <package name="dist.plugins" line-rate="0.9240999999999999" branch-rate="0.8774">
265
265
  <classes>
266
266
  <class name="ejs.js" filename="dist/plugins/ejs.js" line-rate="1" branch-rate="1">
267
267
  <methods>
@@ -312,9 +312,9 @@
312
312
  <line number="16" hits="53"/>
313
313
  </lines>
314
314
  </method>
315
- <method name="(anonymous_3)" hits="1372" signature="()V">
315
+ <method name="(anonymous_3)" hits="1425" signature="()V">
316
316
  <lines>
317
- <line number="17" hits="1372"/>
317
+ <line number="17" hits="1425"/>
318
318
  </lines>
319
319
  </method>
320
320
  <method name="(anonymous_4)" hits="18" signature="()V">
@@ -358,7 +358,7 @@
358
358
  <line number="9" hits="36" branch="false"/>
359
359
  <line number="11" hits="36" branch="false"/>
360
360
  <line number="14" hits="36" branch="false"/>
361
- <line number="17" hits="1372" branch="false"/>
361
+ <line number="17" hits="1425" branch="false"/>
362
362
  <line number="18" hits="53" branch="true" condition-coverage="100% (2/2)"/>
363
363
  <line number="19" hits="44" branch="false"/>
364
364
  <line number="20" hits="9" branch="false"/>
@@ -391,7 +391,7 @@
391
391
  <line number="62" hits="5" branch="false"/>
392
392
  </lines>
393
393
  </class>
394
- <class name="manifests.js" filename="dist/plugins/manifests.js" line-rate="0.9183" branch-rate="0.9152">
394
+ <class name="manifests.js" filename="dist/plugins/manifests.js" line-rate="0.9166" branch-rate="0.8985">
395
395
  <methods>
396
396
  <method name="getManifestEntryFile" hits="59" signature="()V">
397
397
  <lines>
@@ -408,54 +408,64 @@
408
408
  <line number="53" hits="19"/>
409
409
  </lines>
410
410
  </method>
411
- <method name="(anonymous_3)" hits="36" signature="()V">
411
+ <method name="(anonymous_3)" hits="86" signature="()V">
412
412
  <lines>
413
- <line number="98" hits="36"/>
413
+ <line number="86" hits="86"/>
414
414
  </lines>
415
415
  </method>
416
- <method name="(anonymous_4)" hits="36" signature="()V">
416
+ <method name="(anonymous_4)" hits="5" signature="()V">
417
417
  <lines>
418
- <line number="103" hits="36"/>
418
+ <line number="89" hits="5"/>
419
419
  </lines>
420
420
  </method>
421
421
  <method name="(anonymous_5)" hits="36" signature="()V">
422
422
  <lines>
423
- <line number="107" hits="36"/>
423
+ <line number="114" hits="36"/>
424
424
  </lines>
425
425
  </method>
426
- <method name="(anonymous_6)" hits="53" signature="()V">
426
+ <method name="(anonymous_6)" hits="36" signature="()V">
427
427
  <lines>
428
- <line number="110" hits="53"/>
428
+ <line number="119" hits="36"/>
429
429
  </lines>
430
430
  </method>
431
- <method name="(anonymous_7)" hits="59" signature="()V">
431
+ <method name="(anonymous_7)" hits="36" signature="()V">
432
432
  <lines>
433
- <line number="129" hits="59"/>
433
+ <line number="123" hits="36"/>
434
434
  </lines>
435
435
  </method>
436
- <method name="(anonymous_8)" hits="15" signature="()V">
436
+ <method name="(anonymous_8)" hits="53" signature="()V">
437
437
  <lines>
438
- <line number="146" hits="15"/>
438
+ <line number="126" hits="53"/>
439
439
  </lines>
440
440
  </method>
441
- <method name="(anonymous_9)" hits="16" signature="()V">
441
+ <method name="(anonymous_9)" hits="59" signature="()V">
442
442
  <lines>
443
- <line number="147" hits="16"/>
443
+ <line number="145" hits="59"/>
444
444
  </lines>
445
445
  </method>
446
- <method name="(anonymous_10)" hits="34" signature="()V">
446
+ <method name="(anonymous_10)" hits="15" signature="()V">
447
447
  <lines>
448
- <line number="147" hits="34"/>
448
+ <line number="162" hits="15"/>
449
449
  </lines>
450
450
  </method>
451
- <method name="(anonymous_11)" hits="110" signature="()V">
451
+ <method name="(anonymous_11)" hits="16" signature="()V">
452
452
  <lines>
453
- <line number="149" hits="110"/>
453
+ <line number="163" hits="16"/>
454
454
  </lines>
455
455
  </method>
456
- <method name="(anonymous_12)" hits="19" signature="()V">
456
+ <method name="(anonymous_12)" hits="34" signature="()V">
457
457
  <lines>
458
- <line number="155" hits="19"/>
458
+ <line number="163" hits="34"/>
459
+ </lines>
460
+ </method>
461
+ <method name="(anonymous_13)" hits="110" signature="()V">
462
+ <lines>
463
+ <line number="165" hits="110"/>
464
+ </lines>
465
+ </method>
466
+ <method name="(anonymous_14)" hits="19" signature="()V">
467
+ <lines>
468
+ <line number="171" hits="19"/>
459
469
  </lines>
460
470
  </method>
461
471
  </methods>
@@ -482,82 +492,92 @@
482
492
  <line number="43" hits="64" branch="false"/>
483
493
  <line number="45" hits="6" branch="false"/>
484
494
  <line number="54" hits="19" branch="false"/>
485
- <line number="55" hits="19" branch="false"/>
486
- <line number="56" hits="76" branch="false"/>
487
- <line number="57" hits="76" branch="true" condition-coverage="100% (2/2)"/>
488
- <line number="58" hits="6" branch="false"/>
489
- <line number="59" hits="70" branch="false"/>
490
- <line number="60" hits="70" branch="false"/>
491
- <line number="61" hits="70" branch="true" condition-coverage="100% (2/2)"/>
492
- <line number="62" hits="64" branch="false"/>
495
+ <line number="56" hits="19" branch="false"/>
496
+ <line number="57" hits="19" branch="false"/>
497
+ <line number="58" hits="76" branch="false"/>
498
+ <line number="59" hits="76" branch="true" condition-coverage="100% (2/2)"/>
499
+ <line number="60" hits="6" branch="false"/>
500
+ <line number="61" hits="70" branch="false"/>
501
+ <line number="62" hits="70" branch="false"/>
493
502
  <line number="63" hits="70" branch="true" condition-coverage="100% (2/2)"/>
494
- <line number="64" hits="61" branch="false"/>
503
+ <line number="64" hits="64" branch="false"/>
495
504
  <line number="65" hits="70" branch="true" condition-coverage="100% (2/2)"/>
496
- <line number="66" hits="3" branch="false"/>
505
+ <line number="66" hits="61" branch="false"/>
497
506
  <line number="67" hits="70" branch="true" condition-coverage="100% (2/2)"/>
498
- <line number="68" hits="47" branch="false"/>
507
+ <line number="68" hits="3" branch="false"/>
499
508
  <line number="69" hits="70" branch="true" condition-coverage="100% (2/2)"/>
500
- <line number="70" hits="5" branch="false"/>
501
- <line number="72" hits="70" branch="false"/>
502
- <line number="73" hits="70" branch="true" condition-coverage="100% (2/2)"/>
503
- <line number="74" hits="2" branch="false"/>
504
- <line number="75" hits="70" branch="true" condition-coverage="50% (1/2)"/>
505
- <line number="76" hits="0" branch="false"/>
506
- <line number="77" hits="70" branch="false"/>
507
- <line number="80" hits="19" branch="false"/>
508
- <line number="81" hits="76" branch="false"/>
509
- <line number="82" hits="76" branch="true" condition-coverage="100% (2/2)"/>
510
- <line number="83" hits="70" branch="false"/>
511
- <line number="85" hits="6" branch="true" condition-coverage="50% (1/2)"/>
512
- <line number="86" hits="0" branch="false"/>
513
- <line number="87" hits="6" branch="true" condition-coverage="100% (2/2)"/>
514
- <line number="90" hits="76" branch="false"/>
515
- <line number="91" hits="5" branch="true" condition-coverage="100% (2/2)"/>
516
- <line number="92" hits="3" branch="false"/>
517
- <line number="96" hits="19" branch="false"/>
518
- <line number="99" hits="36" branch="false"/>
519
- <line number="101" hits="36" branch="false"/>
520
- <line number="105" hits="36" branch="false"/>
521
- <line number="108" hits="36" branch="false"/>
522
- <line number="111" hits="53" branch="false"/>
523
- <line number="112" hits="53" branch="true" condition-coverage="100% (2/2)"/>
524
- <line number="113" hits="1" branch="false"/>
525
- <line number="114" hits="1" branch="false"/>
526
- <line number="115" hits="2" branch="false"/>
527
- <line number="116" hits="2" branch="false"/>
528
- <line number="117" hits="2" branch="false"/>
529
- <line number="121" hits="53" branch="false"/>
530
- <line number="122" hits="53" branch="false"/>
531
- <line number="124" hits="53" branch="false"/>
532
- <line number="125" hits="48" branch="false"/>
533
- <line number="126" hits="48" branch="false"/>
534
- <line number="127" hits="48" branch="true" condition-coverage="100% (2/2)"/>
535
- <line number="128" hits="48" branch="false"/>
536
- <line number="129" hits="48" branch="true" condition-coverage="100% (1/1)"/>
537
- <line number="130" hits="59" branch="false"/>
538
- <line number="131" hits="59" branch="false"/>
539
- <line number="132" hits="59" branch="true" condition-coverage="50% (1/2)"/>
540
- <line number="133" hits="59" branch="false"/>
541
- <line number="136" hits="59" branch="false"/>
542
- <line number="137" hits="59" branch="true" condition-coverage="100% (2/2)"/>
543
- <line number="140" hits="53" branch="true" condition-coverage="100% (2/2)"/>
544
- <line number="141" hits="19" branch="false"/>
545
- <line number="143" hits="53" branch="false"/>
546
- <line number="147" hits="34" branch="false"/>
547
- <line number="150" hits="110" branch="true" condition-coverage="100% (2/2)"/>
548
- <line number="151" hits="7" branch="false"/>
549
- <line number="152" hits="103" branch="false"/>
550
- <line number="153" hits="103" branch="true" condition-coverage="100% (2/2)"/>
551
- <line number="156" hits="19" branch="false"/>
509
+ <line number="70" hits="47" branch="false"/>
510
+ <line number="71" hits="70" branch="true" condition-coverage="100% (2/2)"/>
511
+ <line number="72" hits="5" branch="false"/>
512
+ <line number="74" hits="70" branch="false"/>
513
+ <line number="75" hits="70" branch="true" condition-coverage="100% (2/2)"/>
514
+ <line number="76" hits="2" branch="false"/>
515
+ <line number="77" hits="70" branch="true" condition-coverage="50% (1/2)"/>
516
+ <line number="78" hits="0" branch="false"/>
517
+ <line number="79" hits="70" branch="false"/>
518
+ <line number="80" hits="70" branch="false"/>
519
+ <line number="83" hits="19" branch="false"/>
520
+ <line number="84" hits="70" branch="false"/>
521
+ <line number="85" hits="70" branch="true" condition-coverage="100% (2/2)"/>
522
+ <line number="86" hits="86" branch="true" condition-coverage="100% (2/2)"/>
523
+ <line number="88" hits="70" branch="true" condition-coverage="100% (2/2)"/>
524
+ <line number="89" hits="5" branch="true" condition-coverage="50% (1/2)"/>
525
+ <line number="93" hits="19" branch="false"/>
526
+ <line number="94" hits="76" branch="false"/>
527
+ <line number="95" hits="76" branch="true" condition-coverage="100% (2/2)"/>
528
+ <line number="96" hits="70" branch="false"/>
529
+ <line number="98" hits="6" branch="true" condition-coverage="50% (1/2)"/>
530
+ <line number="99" hits="0" branch="false"/>
531
+ <line number="100" hits="6" branch="true" condition-coverage="100% (2/2)"/>
532
+ <line number="103" hits="76" branch="false"/>
533
+ <line number="105" hits="5" branch="true" condition-coverage="50% (1/2)"/>
534
+ <line number="106" hits="0" branch="false"/>
535
+ <line number="107" hits="5" branch="true" condition-coverage="100% (2/2)"/>
536
+ <line number="108" hits="3" branch="false"/>
537
+ <line number="112" hits="19" branch="false"/>
538
+ <line number="115" hits="36" branch="false"/>
539
+ <line number="117" hits="36" branch="false"/>
540
+ <line number="121" hits="36" branch="false"/>
541
+ <line number="124" hits="36" branch="false"/>
542
+ <line number="127" hits="53" branch="false"/>
543
+ <line number="128" hits="53" branch="true" condition-coverage="100% (2/2)"/>
544
+ <line number="129" hits="1" branch="false"/>
545
+ <line number="130" hits="1" branch="false"/>
546
+ <line number="131" hits="2" branch="false"/>
547
+ <line number="132" hits="2" branch="false"/>
548
+ <line number="133" hits="2" branch="false"/>
549
+ <line number="137" hits="53" branch="false"/>
550
+ <line number="138" hits="53" branch="false"/>
551
+ <line number="140" hits="53" branch="false"/>
552
+ <line number="141" hits="48" branch="false"/>
553
+ <line number="142" hits="48" branch="false"/>
554
+ <line number="143" hits="48" branch="true" condition-coverage="100% (2/2)"/>
555
+ <line number="144" hits="48" branch="false"/>
556
+ <line number="145" hits="48" branch="true" condition-coverage="100% (1/1)"/>
557
+ <line number="146" hits="59" branch="false"/>
558
+ <line number="147" hits="59" branch="false"/>
559
+ <line number="148" hits="59" branch="true" condition-coverage="50% (1/2)"/>
560
+ <line number="149" hits="59" branch="false"/>
561
+ <line number="152" hits="59" branch="false"/>
562
+ <line number="153" hits="59" branch="true" condition-coverage="100% (2/2)"/>
563
+ <line number="156" hits="53" branch="true" condition-coverage="100% (2/2)"/>
552
564
  <line number="157" hits="19" branch="false"/>
553
- <line number="158" hits="73" branch="false"/>
554
- <line number="159" hits="73" branch="true" condition-coverage="100% (4/4)"/>
555
- <line number="160" hits="64" branch="false"/>
556
- <line number="164" hits="64" branch="false"/>
557
- <line number="165" hits="64" branch="true" condition-coverage="100% (2/2)"/>
558
- <line number="166" hits="4" branch="true" condition-coverage="100% (2/2)"/>
559
- <line number="168" hits="64" branch="false"/>
560
- <line number="171" hits="19" branch="false"/>
565
+ <line number="159" hits="53" branch="false"/>
566
+ <line number="163" hits="34" branch="false"/>
567
+ <line number="166" hits="110" branch="true" condition-coverage="100% (2/2)"/>
568
+ <line number="167" hits="7" branch="false"/>
569
+ <line number="168" hits="103" branch="false"/>
570
+ <line number="169" hits="103" branch="true" condition-coverage="100% (2/2)"/>
571
+ <line number="172" hits="19" branch="false"/>
572
+ <line number="173" hits="19" branch="false"/>
573
+ <line number="174" hits="73" branch="false"/>
574
+ <line number="175" hits="73" branch="true" condition-coverage="100% (4/4)"/>
575
+ <line number="176" hits="64" branch="false"/>
576
+ <line number="180" hits="64" branch="false"/>
577
+ <line number="181" hits="64" branch="true" condition-coverage="100% (2/2)"/>
578
+ <line number="182" hits="4" branch="true" condition-coverage="100% (2/2)"/>
579
+ <line number="184" hits="64" branch="false"/>
580
+ <line number="187" hits="19" branch="false"/>
561
581
  </lines>
562
582
  </class>
563
583
  <class name="meta.js" filename="dist/plugins/meta.js" line-rate="1" branch-rate="1">
@@ -759,9 +779,9 @@
759
779
  <line number="71" hits="36"/>
760
780
  </lines>
761
781
  </method>
762
- <method name="(anonymous_11)" hits="848" signature="()V">
782
+ <method name="(anonymous_11)" hits="876" signature="()V">
763
783
  <lines>
764
- <line number="73" hits="848"/>
784
+ <line number="73" hits="876"/>
765
785
  </lines>
766
786
  </method>
767
787
  <method name="(anonymous_12)" hits="53" signature="()V">
@@ -846,7 +866,7 @@
846
866
  <line number="67" hits="153" branch="true" condition-coverage="100% (2/2)"/>
847
867
  <line number="69" hits="36" branch="false"/>
848
868
  <line number="72" hits="36" branch="false"/>
849
- <line number="73" hits="848" branch="false"/>
869
+ <line number="73" hits="876" branch="false"/>
850
870
  <line number="74" hits="36" branch="true" condition-coverage="100% (2/2)"/>
851
871
  <line number="77" hits="53" branch="true" condition-coverage="100% (2/2)"/>
852
872
  <line number="78" hits="1" branch="false"/>
package/output/junit.xml CHANGED
@@ -1,201 +1,201 @@
1
1
  <?xml version="1.0" encoding="UTF-8" ?>
2
- <testsuites name="vitest tests" tests="42" failures="0" errors="0" time="2.781798094">
3
- <testsuite name="test/deps/main.test.js" timestamp="2026-03-14T21:46:24.300Z" hostname="archon" tests="3" failures="0" errors="0" skipped="0" time="0.153481821">
4
- <testcase classname="test/deps/main.test.js" name="deps &gt; should deliver empty deps in dev mode via /api/deps.json" time="0.079171382">
2
+ <testsuites name="vitest tests" tests="42" failures="0" errors="0" time="2.115401235">
3
+ <testsuite name="test/deps/main.test.js" timestamp="2026-03-17T13:44:49.630Z" hostname="archon" tests="3" failures="0" errors="0" skipped="0" time="0.130455401">
4
+ <testcase classname="test/deps/main.test.js" name="deps &gt; should deliver empty deps in dev mode via /api/deps.json" time="0.083724081">
5
5
  </testcase>
6
- <testcase classname="test/deps/main.test.js" name="deps &gt; should deliver empty deps in dev mode via /dependencies" time="0.02943092">
6
+ <testcase classname="test/deps/main.test.js" name="deps &gt; should deliver empty deps in dev mode via /dependencies" time="0.021832628">
7
7
  </testcase>
8
- <testcase classname="test/deps/main.test.js" name="deps &gt; should deliver empty deps with custom base path" time="0.042191312">
8
+ <testcase classname="test/deps/main.test.js" name="deps &gt; should deliver empty deps with custom base path" time="0.023479659">
9
9
  </testcase>
10
10
  </testsuite>
11
- <testsuite name="test/ejs/main.test.js" timestamp="2026-03-14T21:46:24.301Z" hostname="archon" tests="1" failures="0" errors="0" skipped="0" time="0.080146005">
12
- <testcase classname="test/ejs/main.test.js" name="EJS template emission &gt; emits index.ejs as a bundle asset" time="0.078816966">
11
+ <testsuite name="test/ejs/main.test.js" timestamp="2026-03-17T13:44:49.631Z" hostname="archon" tests="1" failures="0" errors="0" skipped="0" time="0.071080946">
12
+ <testcase classname="test/ejs/main.test.js" name="EJS template emission &gt; emits index.ejs as a bundle asset" time="0.069527121">
13
13
  <system-out>
14
14
  [vite-plugin-ox-manifests/ejs] Added index.ejs to bundle
15
15
 
16
16
  </system-out>
17
17
  </testcase>
18
18
  </testsuite>
19
- <testsuite name="test/gettext-chunked/main.test.js" timestamp="2026-03-14T21:46:24.301Z" hostname="archon" tests="2" failures="0" errors="0" skipped="0" time="0.20811698">
20
- <testcase classname="test/gettext-chunked/main.test.js" name="Dictionary in modules with dynamic imports &gt; works" time="0.145206735">
19
+ <testsuite name="test/gettext-chunked/main.test.js" timestamp="2026-03-17T13:44:49.631Z" hostname="archon" tests="2" failures="0" errors="0" skipped="0" time="0.129955619">
20
+ <testcase classname="test/gettext-chunked/main.test.js" name="Dictionary in modules with dynamic imports &gt; works" time="0.082805121">
21
21
  <system-out>
22
22
  [vite-plugin-ox-manifests/ejs] Skipped (no index.ejs found at /home/db/Repositories/gitlab.com/openxchange/appsuite/web-foundation/tools/packages/vite-plugin-ox-manifests/test/gettext-chunked/index.ejs )
23
23
 
24
24
  </system-out>
25
25
  </testcase>
26
- <testcase classname="test/gettext-chunked/main.test.js" name="Dictionary in modules with dynamic imports &gt; works in dev mode" time="0.061555396">
26
+ <testcase classname="test/gettext-chunked/main.test.js" name="Dictionary in modules with dynamic imports &gt; works in dev mode" time="0.045817369">
27
27
  </testcase>
28
28
  </testsuite>
29
- <testsuite name="test/gettext-simple/main.test.js" timestamp="2026-03-14T21:46:24.301Z" hostname="archon" tests="2" failures="0" errors="0" skipped="0" time="0.188598565">
30
- <testcase classname="test/gettext-simple/main.test.js" name="Simple gettext scenario &gt; works" time="0.131177776">
29
+ <testsuite name="test/gettext-simple/main.test.js" timestamp="2026-03-17T13:44:49.631Z" hostname="archon" tests="2" failures="0" errors="0" skipped="0" time="0.124192999">
30
+ <testcase classname="test/gettext-simple/main.test.js" name="Simple gettext scenario &gt; works" time="0.069743568">
31
31
  <system-out>
32
32
  [vite-plugin-ox-manifests/ejs] Skipped (no index.ejs found at /home/db/Repositories/gitlab.com/openxchange/appsuite/web-foundation/tools/packages/vite-plugin-ox-manifests/test/gettext-simple/index.ejs )
33
33
 
34
34
  </system-out>
35
35
  </testcase>
36
- <testcase classname="test/gettext-simple/main.test.js" name="Simple gettext scenario &gt; works in dev mode" time="0.056165648">
36
+ <testcase classname="test/gettext-simple/main.test.js" name="Simple gettext scenario &gt; works in dev mode" time="0.052827297">
37
37
  </testcase>
38
38
  </testsuite>
39
- <testsuite name="test/hmr/main.test.js" timestamp="2026-03-14T21:46:24.301Z" hostname="archon" tests="3" failures="0" errors="0" skipped="0" time="0.212888265">
40
- <testcase classname="test/hmr/main.test.js" name="HMR &gt; adds timestamps to manifest files" time="0.143302804">
41
- </testcase>
42
- <testcase classname="test/hmr/main.test.js" name="HMR &gt; adds timestamps to settings manifest files" time="0.040518004">
43
- </testcase>
44
- <testcase classname="test/hmr/main.test.js" name="HMR &gt; includes base-path in manifests" time="0.027781046">
45
- </testcase>
46
- </testsuite>
47
- <testsuite name="test/gettext-multiple/main.test.js" timestamp="2026-03-14T21:46:24.301Z" hostname="archon" tests="2" failures="0" errors="0" skipped="0" time="0.159858294">
48
- <testcase classname="test/gettext-multiple/main.test.js" name="Multiple dictionaries gettext scenario &gt; works" time="0.085949992">
39
+ <testsuite name="test/gettext-multiple/main.test.js" timestamp="2026-03-17T13:44:49.631Z" hostname="archon" tests="2" failures="0" errors="0" skipped="0" time="0.153567377">
40
+ <testcase classname="test/gettext-multiple/main.test.js" name="Multiple dictionaries gettext scenario &gt; works" time="0.094829081">
49
41
  <system-out>
50
42
  [vite-plugin-ox-manifests/ejs] Skipped (no index.ejs found at /home/db/Repositories/gitlab.com/openxchange/appsuite/web-foundation/tools/packages/vite-plugin-ox-manifests/test/gettext-multiple/index.ejs )
51
43
 
52
44
  </system-out>
53
45
  </testcase>
54
- <testcase classname="test/gettext-multiple/main.test.js" name="Multiple dictionaries gettext scenario &gt; works in dev mode" time="0.072553734">
46
+ <testcase classname="test/gettext-multiple/main.test.js" name="Multiple dictionaries gettext scenario &gt; works in dev mode" time="0.05749765">
47
+ </testcase>
48
+ </testsuite>
49
+ <testsuite name="test/hmr/main.test.js" timestamp="2026-03-17T13:44:49.631Z" hostname="archon" tests="3" failures="0" errors="0" skipped="0" time="0.140226117">
50
+ <testcase classname="test/hmr/main.test.js" name="HMR &gt; adds timestamps to manifest files" time="0.084553052">
51
+ </testcase>
52
+ <testcase classname="test/hmr/main.test.js" name="HMR &gt; adds timestamps to settings manifest files" time="0.032267566">
53
+ </testcase>
54
+ <testcase classname="test/hmr/main.test.js" name="HMR &gt; includes base-path in manifests" time="0.022082719">
55
55
  </testcase>
56
56
  </testsuite>
57
- <testsuite name="test/html-relative-paths/main.test.js" timestamp="2026-03-14T21:46:24.302Z" hostname="archon" tests="2" failures="0" errors="0" skipped="0" time="0.138046376">
58
- <testcase classname="test/html-relative-paths/main.test.js" name="HTML relative paths &gt; transforms paths" time="0.109541989">
57
+ <testsuite name="test/html-relative-paths/main.test.js" timestamp="2026-03-17T13:44:49.632Z" hostname="archon" tests="2" failures="0" errors="0" skipped="0" time="0.111474602">
58
+ <testcase classname="test/html-relative-paths/main.test.js" name="HTML relative paths &gt; transforms paths" time="0.082291094">
59
59
  </testcase>
60
- <testcase classname="test/html-relative-paths/main.test.js" name="HTML relative paths &gt; warns about deprecated transformAbsolutePaths option" time="0.02719275">
60
+ <testcase classname="test/html-relative-paths/main.test.js" name="HTML relative paths &gt; warns about deprecated transformAbsolutePaths option" time="0.027641726">
61
61
  </testcase>
62
62
  </testsuite>
63
- <testsuite name="test/manifest-dependencies/main.test.js" timestamp="2026-03-14T21:46:24.302Z" hostname="archon" tests="1" failures="0" errors="0" skipped="0" time="0.192178339">
64
- <testcase classname="test/manifest-dependencies/main.test.js" name="Manifest with dependencies &gt; works" time="0.19112052">
63
+ <testsuite name="test/manifest-dependencies/main.test.js" timestamp="2026-03-17T13:44:49.632Z" hostname="archon" tests="1" failures="0" errors="0" skipped="0" time="0.137175013">
64
+ <testcase classname="test/manifest-dependencies/main.test.js" name="Manifest with dependencies &gt; works" time="0.135769095">
65
65
  <system-out>
66
66
  [vite-plugin-ox-manifests/ejs] Skipped (no index.ejs found at /home/db/Repositories/gitlab.com/openxchange/appsuite/web-foundation/tools/packages/vite-plugin-ox-manifests/test/manifest-dependencies/index.ejs )
67
67
 
68
68
  </system-out>
69
69
  </testcase>
70
70
  </testsuite>
71
- <testsuite name="test/manifest-dynamic-deps/main.test.js" timestamp="2026-03-14T21:46:24.302Z" hostname="archon" tests="1" failures="0" errors="0" skipped="0" time="0.184599242">
72
- <testcase classname="test/manifest-dynamic-deps/main.test.js" name="Manifest with dynamic dependencies &gt; works" time="0.183242752">
71
+ <testsuite name="test/manifest-dynamic-deps/main.test.js" timestamp="2026-03-17T13:44:49.632Z" hostname="archon" tests="1" failures="0" errors="0" skipped="0" time="0.163036456">
72
+ <testcase classname="test/manifest-dynamic-deps/main.test.js" name="Manifest with dynamic dependencies &gt; works" time="0.161872354">
73
73
  <system-out>
74
74
  [vite-plugin-ox-manifests/ejs] Skipped (no index.ejs found at /home/db/Repositories/gitlab.com/openxchange/appsuite/web-foundation/tools/packages/vite-plugin-ox-manifests/test/manifest-dynamic-deps/index.ejs )
75
75
 
76
76
  </system-out>
77
77
  </testcase>
78
78
  </testsuite>
79
- <testsuite name="test/manifest-multiple/main.test.js" timestamp="2026-03-14T21:46:24.302Z" hostname="archon" tests="2" failures="0" errors="0" skipped="0" time="0.165875653">
80
- <testcase classname="test/manifest-multiple/main.test.js" name="Multiple manifest scenario &gt; works" time="0.104249103">
79
+ <testsuite name="test/manifest-multiple/main.test.js" timestamp="2026-03-17T13:44:49.632Z" hostname="archon" tests="2" failures="0" errors="0" skipped="0" time="0.123014009">
80
+ <testcase classname="test/manifest-multiple/main.test.js" name="Multiple manifest scenario &gt; works" time="0.060549958">
81
81
  <system-out>
82
82
  [vite-plugin-ox-manifests/ejs] Skipped (no index.ejs found at /home/db/Repositories/gitlab.com/openxchange/appsuite/web-foundation/tools/packages/vite-plugin-ox-manifests/test/manifest-multiple/index.ejs )
83
83
 
84
84
  </system-out>
85
85
  </testcase>
86
- <testcase classname="test/manifest-multiple/main.test.js" name="Multiple manifest scenario &gt; works in dev mode" time="0.060135144">
86
+ <testcase classname="test/manifest-multiple/main.test.js" name="Multiple manifest scenario &gt; works in dev mode" time="0.06099757">
87
87
  </testcase>
88
88
  </testsuite>
89
- <testsuite name="test/manifest-simple/main.test.js" timestamp="2026-03-14T21:46:24.302Z" hostname="archon" tests="5" failures="0" errors="0" skipped="0" time="0.223609782">
90
- <testcase classname="test/manifest-simple/main.test.js" name="Simple manifest scenario &gt; works" time="0.1043328">
89
+ <testsuite name="test/manifest-simple/main.test.js" timestamp="2026-03-17T13:44:49.632Z" hostname="archon" tests="5" failures="0" errors="0" skipped="0" time="0.171397469">
90
+ <testcase classname="test/manifest-simple/main.test.js" name="Simple manifest scenario &gt; works" time="0.063688016">
91
91
  <system-out>
92
92
  [vite-plugin-ox-manifests/ejs] Skipped (no index.ejs found at /home/db/Repositories/gitlab.com/openxchange/appsuite/web-foundation/tools/packages/vite-plugin-ox-manifests/test/manifest-simple/index.ejs )
93
93
 
94
94
  </system-out>
95
95
  </testcase>
96
- <testcase classname="test/manifest-simple/main.test.js" name="Simple manifest scenario &gt; works in dev mode" time="0.060846994">
96
+ <testcase classname="test/manifest-simple/main.test.js" name="Simple manifest scenario &gt; works in dev mode" time="0.040429824">
97
97
  </testcase>
98
- <testcase classname="test/manifest-simple/main.test.js" name="Simple manifest scenario &gt; works in dev mode with base set" time="0.018252113">
98
+ <testcase classname="test/manifest-simple/main.test.js" name="Simple manifest scenario &gt; works in dev mode with base set" time="0.018407568">
99
99
  </testcase>
100
- <testcase classname="test/manifest-simple/main.test.js" name="Simple manifest scenario &gt; works in dev mode with base set (new endpoint)" time="0.019205906">
100
+ <testcase classname="test/manifest-simple/main.test.js" name="Simple manifest scenario &gt; works in dev mode with base set (new endpoint)" time="0.024096931">
101
101
  </testcase>
102
- <testcase classname="test/manifest-simple/main.test.js" name="Simple manifest scenario &gt; does not empty files on transform" time="0.019576414">
102
+ <testcase classname="test/manifest-simple/main.test.js" name="Simple manifest scenario &gt; does not empty files on transform" time="0.023362088">
103
103
  </testcase>
104
104
  </testsuite>
105
- <testsuite name="test/meta/main.test.js" timestamp="2026-03-14T21:46:24.302Z" hostname="archon" tests="1" failures="0" errors="0" skipped="0" time="0.079481075">
106
- <testcase classname="test/meta/main.test.js" name="Meta option &gt; works" time="0.078173365">
105
+ <testsuite name="test/meta/main.test.js" timestamp="2026-03-17T13:44:49.632Z" hostname="archon" tests="1" failures="0" errors="0" skipped="0" time="0.07822091">
106
+ <testcase classname="test/meta/main.test.js" name="Meta option &gt; works" time="0.07715883">
107
107
  <system-out>
108
108
  [vite-plugin-ox-manifests/ejs] Skipped (no index.ejs found at /home/db/Repositories/gitlab.com/openxchange/appsuite/web-foundation/tools/packages/vite-plugin-ox-manifests/test/meta/index.ejs )
109
109
 
110
110
  </system-out>
111
111
  </testcase>
112
112
  </testsuite>
113
- <testsuite name="test/preload-helper-bundled/main.test.js" timestamp="2026-03-14T21:46:24.302Z" hostname="archon" tests="1" failures="0" errors="0" skipped="0" time="0.086483666">
114
- <testcase classname="test/preload-helper-bundled/main.test.js" name="Preload helper bundled &gt; works" time="0.085461865">
113
+ <testsuite name="test/preload-helper-bundled/main.test.js" timestamp="2026-03-17T13:44:49.632Z" hostname="archon" tests="1" failures="0" errors="0" skipped="0" time="0.063814886">
114
+ <testcase classname="test/preload-helper-bundled/main.test.js" name="Preload helper bundled &gt; works" time="0.062572345">
115
115
  <system-out>
116
116
  [vite-plugin-ox-manifests/ejs] Skipped (no index.ejs found at /home/db/Repositories/gitlab.com/openxchange/appsuite/web-foundation/tools/packages/vite-plugin-ox-manifests/test/preload-helper-bundled/index.ejs )
117
117
 
118
118
  </system-out>
119
119
  </testcase>
120
120
  </testsuite>
121
- <testsuite name="test/preload-helper-separate/main.test.js" timestamp="2026-03-14T21:46:24.303Z" hostname="archon" tests="1" failures="0" errors="0" skipped="0" time="0.084485628">
122
- <testcase classname="test/preload-helper-separate/main.test.js" name="Preload helper separate &gt; replaces code for relative path loading" time="0.083305699">
121
+ <testsuite name="test/preload-helper-separate/main.test.js" timestamp="2026-03-17T13:44:49.632Z" hostname="archon" tests="1" failures="0" errors="0" skipped="0" time="0.069557177">
122
+ <testcase classname="test/preload-helper-separate/main.test.js" name="Preload helper separate &gt; replaces code for relative path loading" time="0.068353069">
123
123
  <system-out>
124
124
  [vite-plugin-ox-manifests/ejs] Skipped (no index.ejs found at /home/db/Repositories/gitlab.com/openxchange/appsuite/web-foundation/tools/packages/vite-plugin-ox-manifests/test/preload-helper-separate/index.ejs )
125
125
 
126
126
  </system-out>
127
127
  </testcase>
128
128
  </testsuite>
129
- <testsuite name="test/settings-core/main.test.js" timestamp="2026-03-14T21:46:24.303Z" hostname="archon" tests="3" failures="0" errors="0" skipped="0" time="0.172239364">
130
- <testcase classname="test/settings-core/main.test.js" name="Settings like in core &gt; works" time="0.088134551">
129
+ <testsuite name="test/settings-core/main.test.js" timestamp="2026-03-17T13:44:49.633Z" hostname="archon" tests="3" failures="0" errors="0" skipped="0" time="0.125256702">
130
+ <testcase classname="test/settings-core/main.test.js" name="Settings like in core &gt; works" time="0.055676111">
131
131
  <system-out>
132
132
  [vite-plugin-ox-manifests/ejs] Skipped (no index.ejs found at /home/db/Repositories/gitlab.com/openxchange/appsuite/web-foundation/tools/packages/vite-plugin-ox-manifests/test/settings-core/index.ejs )
133
133
 
134
134
  </system-out>
135
135
  </testcase>
136
- <testcase classname="test/settings-core/main.test.js" name="Settings like in core &gt; skips settings detection when autoloadSettings is false" time="0.029379193">
136
+ <testcase classname="test/settings-core/main.test.js" name="Settings like in core &gt; skips settings detection when autoloadSettings is false" time="0.013806897">
137
137
  <system-out>
138
138
  [vite-plugin-ox-manifests/ejs] Skipped (no index.ejs found at /home/db/Repositories/gitlab.com/openxchange/appsuite/web-foundation/tools/packages/vite-plugin-ox-manifests/test/settings-core/index.ejs )
139
139
 
140
140
  </system-out>
141
141
  </testcase>
142
- <testcase classname="test/settings-core/main.test.js" name="Settings like in core &gt; works in dev mode" time="0.053437707">
142
+ <testcase classname="test/settings-core/main.test.js" name="Settings like in core &gt; works in dev mode" time="0.054655149">
143
143
  </testcase>
144
144
  </testsuite>
145
- <testsuite name="test/settings-external/main.test.js" timestamp="2026-03-14T21:46:24.303Z" hostname="archon" tests="2" failures="0" errors="0" skipped="0" time="0.173673752">
146
- <testcase classname="test/settings-external/main.test.js" name="Settings external &gt; works" time="0.123435954">
145
+ <testsuite name="test/settings-external/main.test.js" timestamp="2026-03-17T13:44:49.633Z" hostname="archon" tests="2" failures="0" errors="0" skipped="0" time="0.118430289">
146
+ <testcase classname="test/settings-external/main.test.js" name="Settings external &gt; works" time="0.055395783">
147
147
  <system-out>
148
148
  [vite-plugin-ox-manifests/ejs] Skipped (no index.ejs found at /home/db/Repositories/gitlab.com/openxchange/appsuite/web-foundation/tools/packages/vite-plugin-ox-manifests/test/settings-external/index.ejs )
149
149
 
150
150
  </system-out>
151
151
  </testcase>
152
- <testcase classname="test/settings-external/main.test.js" name="Settings external &gt; works in dev mode" time="0.048828897">
152
+ <testcase classname="test/settings-external/main.test.js" name="Settings external &gt; works in dev mode" time="0.0616295">
153
153
  </testcase>
154
154
  </testsuite>
155
- <testsuite name="test/settings-ts/main.test.js" timestamp="2026-03-14T21:46:24.303Z" hostname="archon" tests="1" failures="0" errors="0" skipped="0" time="0.107226794">
156
- <testcase classname="test/settings-ts/main.test.js" name="Settings typescript &gt; works" time="0.105756429">
155
+ <testsuite name="test/settings-ts/main.test.js" timestamp="2026-03-17T13:44:49.633Z" hostname="archon" tests="1" failures="0" errors="0" skipped="0" time="0.065416521">
156
+ <testcase classname="test/settings-ts/main.test.js" name="Settings typescript &gt; works" time="0.064225568">
157
157
  <system-out>
158
158
  [vite-plugin-ox-manifests/ejs] Skipped (no index.ejs found at /home/db/Repositories/gitlab.com/openxchange/appsuite/web-foundation/tools/packages/vite-plugin-ox-manifests/test/settings-ts/index.ejs )
159
159
 
160
160
  </system-out>
161
161
  </testcase>
162
162
  </testsuite>
163
- <testsuite name="test/settings-with-requirements/main.test.js" timestamp="2026-03-14T21:46:24.303Z" hostname="archon" tests="4" failures="0" errors="0" skipped="0" time="0.167109625">
164
- <testcase classname="test/settings-with-requirements/main.test.js" name="Settings like in core, with requirements &gt; works" time="0.07456644">
163
+ <testsuite name="test/settings-with-requirements/main.test.js" timestamp="2026-03-17T13:44:49.633Z" hostname="archon" tests="4" failures="0" errors="0" skipped="0" time="0.133615711">
164
+ <testcase classname="test/settings-with-requirements/main.test.js" name="Settings like in core, with requirements &gt; works" time="0.065885815">
165
165
  <system-out>
166
166
  [vite-plugin-ox-manifests/ejs] Skipped (no index.ejs found at /home/db/Repositories/gitlab.com/openxchange/appsuite/web-foundation/tools/packages/vite-plugin-ox-manifests/test/settings-with-requirements/index.ejs )
167
167
 
168
168
  </system-out>
169
169
  </testcase>
170
- <testcase classname="test/settings-with-requirements/main.test.js" name="Settings like in core, with requirements &gt; merges requirements for manifests" time="0.023363356">
170
+ <testcase classname="test/settings-with-requirements/main.test.js" name="Settings like in core, with requirements &gt; merges requirements for manifests" time="0.021340611">
171
171
  <system-out>
172
172
  [vite-plugin-ox-manifests/ejs] Skipped (no index.ejs found at /home/db/Repositories/gitlab.com/openxchange/appsuite/web-foundation/tools/packages/vite-plugin-ox-manifests/test/settings-with-requirements/index.ejs )
173
173
 
174
174
  </system-out>
175
175
  </testcase>
176
- <testcase classname="test/settings-with-requirements/main.test.js" name="Settings like in core, with requirements &gt; merges single requirement for manifests" time="0.039123531">
176
+ <testcase classname="test/settings-with-requirements/main.test.js" name="Settings like in core, with requirements &gt; merges single requirement for manifests" time="0.022928562">
177
177
  <system-out>
178
178
  [vite-plugin-ox-manifests/ejs] Skipped (no index.ejs found at /home/db/Repositories/gitlab.com/openxchange/appsuite/web-foundation/tools/packages/vite-plugin-ox-manifests/test/settings-with-requirements/index.ejs )
179
179
 
180
180
  </system-out>
181
181
  </testcase>
182
- <testcase classname="test/settings-with-requirements/main.test.js" name="Settings like in core, with requirements &gt; merges multiple requirement for manifests" time="0.028408537">
182
+ <testcase classname="test/settings-with-requirements/main.test.js" name="Settings like in core, with requirements &gt; merges multiple requirement for manifests" time="0.022103157">
183
183
  <system-out>
184
184
  [vite-plugin-ox-manifests/ejs] Skipped (no index.ejs found at /home/db/Repositories/gitlab.com/openxchange/appsuite/web-foundation/tools/packages/vite-plugin-ox-manifests/test/settings-with-requirements/index.ejs )
185
185
 
186
186
  </system-out>
187
187
  </testcase>
188
188
  </testsuite>
189
- <testsuite name="test/util/deep-merge.test.js" timestamp="2026-03-14T21:46:24.303Z" hostname="archon" tests="5" failures="0" errors="0" skipped="0" time="0.003698868">
190
- <testcase classname="test/util/deep-merge.test.js" name="Deep merge &gt; with objects" time="0.001699447">
189
+ <testsuite name="test/util/deep-merge.test.js" timestamp="2026-03-17T13:44:49.633Z" hostname="archon" tests="5" failures="0" errors="0" skipped="0" time="0.005513031">
190
+ <testcase classname="test/util/deep-merge.test.js" name="Deep merge &gt; with objects" time="0.001627405">
191
191
  </testcase>
192
- <testcase classname="test/util/deep-merge.test.js" name="Deep merge &gt; with arrays" time="0.000207721">
192
+ <testcase classname="test/util/deep-merge.test.js" name="Deep merge &gt; with arrays" time="0.000250902">
193
193
  </testcase>
194
- <testcase classname="test/util/deep-merge.test.js" name="Deep merge &gt; with strings" time="0.000113123">
194
+ <testcase classname="test/util/deep-merge.test.js" name="Deep merge &gt; with strings" time="0.000104858">
195
195
  </testcase>
196
- <testcase classname="test/util/deep-merge.test.js" name="Deep merge &gt; with different types - arrays / object" time="0.000540156">
196
+ <testcase classname="test/util/deep-merge.test.js" name="Deep merge &gt; with different types - arrays / object" time="0.000698695">
197
197
  </testcase>
198
- <testcase classname="test/util/deep-merge.test.js" name="Deep merge &gt; with different types - object / string" time="0.000106741">
198
+ <testcase classname="test/util/deep-merge.test.js" name="Deep merge &gt; with different types - object / string" time="0.001106243">
199
199
  </testcase>
200
200
  </testsuite>
201
201
  </testsuites>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@open-xchange/vite-plugin-ox-manifests",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "description": "A vite plugin to concat and serve ox manifests",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -25,8 +25,8 @@
25
25
  "chokidar": "^5.0.0",
26
26
  "fast-glob": "^3.3.3",
27
27
  "parseurl": "^1.3.3",
28
- "@open-xchange/vite-plugin-ox-externals": "1.0.0",
29
- "@open-xchange/vite-plugin-po2json": "1.0.0"
28
+ "@open-xchange/vite-plugin-po2json": "1.0.0",
29
+ "@open-xchange/vite-plugin-ox-externals": "1.0.0"
30
30
  },
31
31
  "peerDependencies": {
32
32
  "vite": "^8.0.0"