powerlines 0.37.21 → 0.37.23

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 (111) hide show
  1. package/dist/api.cjs +2 -2
  2. package/dist/api.js +1 -1
  3. package/dist/astro.cjs +4 -4
  4. package/dist/astro.js +3 -3
  5. package/dist/{chunk-STSTFZT2.js → chunk-3XEOJ3TS.js} +89 -48
  6. package/dist/chunk-4QCZWJMW.cjs +12 -0
  7. package/dist/{chunk-GUFYA64E.js → chunk-APLBM72X.js} +3 -3
  8. package/dist/{chunk-LQZK77AH.cjs → chunk-C3TWAGFQ.cjs} +5 -5
  9. package/dist/{chunk-AQG66EUK.js → chunk-D4L3REG4.js} +3 -3
  10. package/dist/chunk-D56IP3ZO.cjs +12 -0
  11. package/dist/{chunk-KRQKJHEH.cjs → chunk-DWF4GVXQ.cjs} +4 -4
  12. package/dist/{chunk-QVZ32P2J.js → chunk-PQ6DDPXP.js} +3 -3
  13. package/dist/{chunk-J7FOWGCH.cjs → chunk-R7IUNKL4.cjs} +89 -48
  14. package/dist/{chunk-Y6A4FTVN.js → chunk-UQ7LY7EU.js} +3 -3
  15. package/dist/{chunk-OZZ65IVY.cjs → chunk-UZV6LCRL.cjs} +4 -4
  16. package/dist/{chunk-7Q4TUBXJ.js → chunk-Z7KIQFLN.js} +3 -3
  17. package/dist/esbuild.cjs +6 -6
  18. package/dist/esbuild.js +3 -3
  19. package/dist/farm.cjs +3 -3
  20. package/dist/farm.js +2 -2
  21. package/dist/index.cjs +10 -10
  22. package/dist/index.js +2 -2
  23. package/dist/lib/build/index.d.cts +1 -1
  24. package/dist/lib/build/index.d.ts +1 -1
  25. package/dist/lib/build/unbuild.d.cts +1 -1
  26. package/dist/lib/build/unbuild.d.ts +1 -1
  27. package/dist/lib/{chunk-C6CJM3EI.cjs → chunk-5WSRLNW3.cjs} +52 -14
  28. package/dist/lib/chunk-5WSRLNW3.cjs.map +1 -0
  29. package/dist/lib/{chunk-ZH6OZFGY.js → chunk-EUG7HXQY.js} +6 -5
  30. package/dist/lib/chunk-EUG7HXQY.js.map +1 -0
  31. package/dist/lib/{chunk-ZTBWCQH5.js → chunk-GAIS4GMK.js} +52 -14
  32. package/dist/lib/chunk-GAIS4GMK.js.map +1 -0
  33. package/dist/lib/{chunk-LD73LMAE.js → chunk-K3NVHAWK.js} +38 -36
  34. package/dist/lib/chunk-K3NVHAWK.js.map +1 -0
  35. package/dist/lib/{chunk-2L77PLFS.js → chunk-KAYP2ZET.js} +3 -3
  36. package/dist/lib/{chunk-2L77PLFS.js.map → chunk-KAYP2ZET.js.map} +1 -1
  37. package/dist/lib/{chunk-MOCQ266V.cjs → chunk-NP43P5WN.cjs} +40 -38
  38. package/dist/lib/chunk-NP43P5WN.cjs.map +1 -0
  39. package/dist/lib/{chunk-4JLVGWHR.js → chunk-UKH6QWNB.js} +4 -4
  40. package/dist/lib/{chunk-4JLVGWHR.js.map → chunk-UKH6QWNB.js.map} +1 -1
  41. package/dist/lib/{chunk-LMXKPOEX.cjs → chunk-Y2IR6IBT.cjs} +19 -19
  42. package/dist/lib/{chunk-LMXKPOEX.cjs.map → chunk-Y2IR6IBT.cjs.map} +1 -1
  43. package/dist/lib/{chunk-GIYLCTW5.cjs → chunk-Y542GHNE.cjs} +6 -6
  44. package/dist/lib/{chunk-GIYLCTW5.cjs.map → chunk-Y542GHNE.cjs.map} +1 -1
  45. package/dist/lib/{chunk-SVAHW2JC.cjs → chunk-ZYQHFUU6.cjs} +18 -17
  46. package/dist/lib/chunk-ZYQHFUU6.cjs.map +1 -0
  47. package/dist/lib/contexts/api-context.cjs +5 -5
  48. package/dist/lib/contexts/api-context.d.cts +1 -1
  49. package/dist/lib/contexts/api-context.d.ts +1 -1
  50. package/dist/lib/contexts/api-context.js +4 -4
  51. package/dist/lib/contexts/context.cjs +3 -3
  52. package/dist/lib/contexts/context.d.cts +1 -5
  53. package/dist/lib/contexts/context.d.ts +1 -5
  54. package/dist/lib/contexts/context.js +2 -2
  55. package/dist/lib/contexts/environment-context.cjs +4 -4
  56. package/dist/lib/contexts/environment-context.d.cts +1 -1
  57. package/dist/lib/contexts/environment-context.d.ts +1 -1
  58. package/dist/lib/contexts/environment-context.js +3 -3
  59. package/dist/lib/contexts/index.cjs +7 -7
  60. package/dist/lib/contexts/index.d.cts +1 -1
  61. package/dist/lib/contexts/index.d.ts +1 -1
  62. package/dist/lib/contexts/index.js +4 -4
  63. package/dist/lib/contexts/plugin-context.d.cts +1 -1
  64. package/dist/lib/contexts/plugin-context.d.ts +1 -1
  65. package/dist/lib/fs/index.cjs +2 -2
  66. package/dist/lib/fs/index.js +1 -1
  67. package/dist/lib/fs/vfs.cjs +2 -2
  68. package/dist/lib/fs/vfs.js +1 -1
  69. package/dist/lib/index.cjs +10 -10
  70. package/dist/lib/index.d.cts +1 -1
  71. package/dist/lib/index.d.ts +1 -1
  72. package/dist/lib/index.js +5 -5
  73. package/dist/lib/{internal-CFBs3Fok.d.cts → internal-Dt8PM9M2.d.cts} +5 -1
  74. package/dist/lib/{internal-Dlj-vo3a.d.ts → internal-DyXNBori.d.ts} +5 -1
  75. package/dist/lib/unplugin/factory.cjs +6 -6
  76. package/dist/lib/unplugin/factory.js +5 -5
  77. package/dist/lib/unplugin/index.cjs +6 -6
  78. package/dist/lib/unplugin/index.js +5 -5
  79. package/dist/next.cjs +4 -4
  80. package/dist/next.js +3 -3
  81. package/dist/nuxt.cjs +7 -7
  82. package/dist/nuxt.js +5 -5
  83. package/dist/rolldown.cjs +6 -6
  84. package/dist/rolldown.js +3 -3
  85. package/dist/rollup.cjs +3 -3
  86. package/dist/rollup.js +2 -2
  87. package/dist/rspack.cjs +3 -3
  88. package/dist/rspack.js +2 -2
  89. package/dist/tsdown.cjs +4 -4
  90. package/dist/tsdown.js +3 -3
  91. package/dist/tsup.cjs +4 -4
  92. package/dist/tsup.js +3 -3
  93. package/dist/types/internal.d.cts +5 -1
  94. package/dist/types/internal.d.ts +5 -1
  95. package/dist/unloader.cjs +3 -3
  96. package/dist/unloader.js +2 -2
  97. package/dist/unplugin.cjs +8 -8
  98. package/dist/unplugin.js +4 -4
  99. package/dist/vite.cjs +6 -6
  100. package/dist/vite.js +3 -3
  101. package/dist/webpack.cjs +6 -6
  102. package/dist/webpack.js +3 -3
  103. package/package.json +8 -8
  104. package/dist/chunk-4QATNI7W.cjs +0 -12
  105. package/dist/chunk-P3RYMCAA.cjs +0 -12
  106. package/dist/lib/chunk-C6CJM3EI.cjs.map +0 -1
  107. package/dist/lib/chunk-LD73LMAE.js.map +0 -1
  108. package/dist/lib/chunk-MOCQ266V.cjs.map +0 -1
  109. package/dist/lib/chunk-SVAHW2JC.cjs.map +0 -1
  110. package/dist/lib/chunk-ZH6OZFGY.js.map +0 -1
  111. package/dist/lib/chunk-ZTBWCQH5.js.map +0 -1
package/dist/api.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkJ7FOWGCH_cjs = require('./chunk-J7FOWGCH.cjs');
3
+ var chunkR7IUNKL4_cjs = require('./chunk-R7IUNKL4.cjs');
4
4
  require('./chunk-B6DVCLP5.cjs');
5
5
  require('./chunk-V5WOGN7O.cjs');
6
6
  require('./chunk-Z6ARQDHR.cjs');
@@ -10,7 +10,7 @@ require('./chunk-PK6SKIKE.cjs');
10
10
 
11
11
  Object.defineProperty(exports, "PowerlinesAPI", {
12
12
  enumerable: true,
13
- get: function () { return chunkJ7FOWGCH_cjs.PowerlinesAPI; }
13
+ get: function () { return chunkR7IUNKL4_cjs.PowerlinesAPI; }
14
14
  });
15
15
  //# sourceMappingURL=api.cjs.map
16
16
  //# sourceMappingURL=api.cjs.map
package/dist/api.js CHANGED
@@ -1,4 +1,4 @@
1
- export { PowerlinesAPI } from './chunk-STSTFZT2.js';
1
+ export { PowerlinesAPI } from './chunk-3XEOJ3TS.js';
2
2
  import './chunk-PQXP7XQK.js';
3
3
  import './chunk-NITQ5IYP.js';
4
4
  import './chunk-2MYPFASJ.js';
package/dist/astro.cjs CHANGED
@@ -2,10 +2,10 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var chunkKRQKJHEH_cjs = require('./chunk-KRQKJHEH.cjs');
5
+ var chunkDWF4GVXQ_cjs = require('./chunk-DWF4GVXQ.cjs');
6
6
  require('./chunk-SE3RCXWI.cjs');
7
- require('./chunk-LQZK77AH.cjs');
8
- require('./chunk-J7FOWGCH.cjs');
7
+ require('./chunk-C3TWAGFQ.cjs');
8
+ require('./chunk-R7IUNKL4.cjs');
9
9
  require('./chunk-B6DVCLP5.cjs');
10
10
  require('./chunk-V5WOGN7O.cjs');
11
11
  require('./chunk-Z6ARQDHR.cjs');
@@ -15,7 +15,7 @@ var chunkPK6SKIKE_cjs = require('./chunk-PK6SKIKE.cjs');
15
15
  var astro = /* @__PURE__ */ chunkPK6SKIKE_cjs.__name((config) => ({
16
16
  vite: {
17
17
  plugins: [
18
- chunkKRQKJHEH_cjs.vite_default(config)
18
+ chunkDWF4GVXQ_cjs.vite_default(config)
19
19
  ]
20
20
  }
21
21
  }), "astro");
package/dist/astro.js CHANGED
@@ -1,7 +1,7 @@
1
- import { vite_default } from './chunk-Y6A4FTVN.js';
1
+ import { vite_default } from './chunk-UQ7LY7EU.js';
2
2
  import './chunk-BGBDDKML.js';
3
- import './chunk-7Q4TUBXJ.js';
4
- import './chunk-STSTFZT2.js';
3
+ import './chunk-Z7KIQFLN.js';
4
+ import './chunk-3XEOJ3TS.js';
5
5
  import './chunk-PQXP7XQK.js';
6
6
  import './chunk-NITQ5IYP.js';
7
7
  import './chunk-2MYPFASJ.js';
@@ -1833,6 +1833,7 @@ var VirtualFileSystem = class _VirtualFileSystem {
1833
1833
  * @returns A promise that resolves to a new virtual file system instance.
1834
1834
  */
1835
1835
  static async create(context) {
1836
+ context.debug("Starting virtual file system (VFS) initialization processes...");
1836
1837
  if (!context.config.skipCache && existsSync(joinPaths$1(context.dataPath, "fs.bin"))) {
1837
1838
  const buffer = await readFileBuffer(joinPaths$1(context.dataPath, "fs.bin"));
1838
1839
  const message2 = new $.Message(buffer, false);
@@ -1846,8 +1847,10 @@ var VirtualFileSystem = class _VirtualFileSystem {
1846
1847
  }
1847
1848
  const message = new $.Message();
1848
1849
  const result = new _VirtualFileSystem(context, message.initRoot(FileSystem));
1850
+ result.#log(LogLevelLabel.DEBUG, "Successfully completed virtual file system (VFS) initialization.");
1849
1851
  if (result.metadata) {
1850
- context.entry = Object.entries(result.metadata).filter(([, meta]) => meta && meta.type === "entry").map(([path, meta]) => {
1852
+ result.#log(LogLevelLabel.DEBUG, `Preparing to load ${Object.keys(result.metadata).length} previously stored metadata records...`);
1853
+ const entry = Object.entries(result.metadata).filter(([, meta]) => meta && meta.type === "entry").map(([path, meta]) => {
1851
1854
  if (meta.properties) {
1852
1855
  const typeDefinition = {
1853
1856
  file: path
@@ -1871,7 +1874,8 @@ var VirtualFileSystem = class _VirtualFileSystem {
1871
1874
  }
1872
1875
  return null;
1873
1876
  }).filter(Boolean);
1874
- context.debug(`Loaded ${context.entry.length} entry type definitions from VFS metadata.`);
1877
+ result.#log(LogLevelLabel.DEBUG, `Loaded ${entry.length} entry type definitions from VFS metadata.`);
1878
+ context.entry = entry;
1875
1879
  }
1876
1880
  return result;
1877
1881
  }
@@ -1903,7 +1907,18 @@ var VirtualFileSystem = class _VirtualFileSystem {
1903
1907
  return new Proxy(this.#metadata, {
1904
1908
  get: /* @__PURE__ */ __name((target, prop) => {
1905
1909
  return target[this.#normalizeId(prop)];
1906
- }, "get")
1910
+ }, "get"),
1911
+ set: /* @__PURE__ */ __name((target, prop, value) => {
1912
+ target[this.#normalizeId(prop)] = value;
1913
+ return true;
1914
+ }, "set"),
1915
+ deleteProperty: /* @__PURE__ */ __name((target, prop) => {
1916
+ delete target[this.#normalizeId(prop)];
1917
+ return true;
1918
+ }, "deleteProperty"),
1919
+ has: /* @__PURE__ */ __name((target, prop) => {
1920
+ return this.#normalizeId(prop) in target;
1921
+ }, "has")
1907
1922
  });
1908
1923
  }
1909
1924
  /**
@@ -1913,7 +1928,18 @@ var VirtualFileSystem = class _VirtualFileSystem {
1913
1928
  return new Proxy(this.#paths, {
1914
1929
  get: /* @__PURE__ */ __name((target, prop) => {
1915
1930
  return target[this.#normalizePath(prop)];
1916
- }, "get")
1931
+ }, "get"),
1932
+ set: /* @__PURE__ */ __name((target, prop, value) => {
1933
+ target[this.#normalizePath(prop)] = value;
1934
+ return true;
1935
+ }, "set"),
1936
+ deleteProperty: /* @__PURE__ */ __name((target, prop) => {
1937
+ delete target[this.#normalizePath(prop)];
1938
+ return true;
1939
+ }, "deleteProperty"),
1940
+ has: /* @__PURE__ */ __name((target, prop) => {
1941
+ return this.#normalizePath(prop) in target;
1942
+ }, "has")
1917
1943
  });
1918
1944
  }
1919
1945
  /**
@@ -1923,7 +1949,18 @@ var VirtualFileSystem = class _VirtualFileSystem {
1923
1949
  return new Proxy(this.#paths, {
1924
1950
  get: /* @__PURE__ */ __name((target, prop) => {
1925
1951
  return target[this.#normalizeId(prop)];
1926
- }, "get")
1952
+ }, "get"),
1953
+ set: /* @__PURE__ */ __name((target, prop, value) => {
1954
+ target[this.#normalizeId(prop)] = value;
1955
+ return true;
1956
+ }, "set"),
1957
+ deleteProperty: /* @__PURE__ */ __name((target, prop) => {
1958
+ delete target[this.#normalizeId(prop)];
1959
+ return true;
1960
+ }, "deleteProperty"),
1961
+ has: /* @__PURE__ */ __name((target, prop) => {
1962
+ return this.#normalizeId(prop) in target;
1963
+ }, "has")
1927
1964
  });
1928
1965
  }
1929
1966
  /**
@@ -2372,6 +2409,7 @@ var VirtualFileSystem = class _VirtualFileSystem {
2372
2409
  this.#metadata[id] = {
2373
2410
  type: "normal",
2374
2411
  timestamp: Date.now(),
2412
+ ...this.#metadata[id] ?? {},
2375
2413
  ...meta
2376
2414
  };
2377
2415
  this.#paths[id] = this.#normalizePath(relativeKey);
@@ -2393,6 +2431,7 @@ var VirtualFileSystem = class _VirtualFileSystem {
2393
2431
  this.#metadata[id] = {
2394
2432
  type: "normal",
2395
2433
  timestamp: Date.now(),
2434
+ ...this.#metadata[id] ?? {},
2396
2435
  ...meta
2397
2436
  };
2398
2437
  this.#paths[id] = this.#normalizePath(relativeKey);
@@ -2617,22 +2656,21 @@ var VirtualFileSystem = class _VirtualFileSystem {
2617
2656
  await this.remove(joinPaths$1(this.#context.dataPath, "fs.bin"));
2618
2657
  const message = new $.Message();
2619
2658
  const fs = message.initRoot(FileSystem);
2620
- const paths = await this.list();
2621
- const storage = fs._initStorage(paths.length);
2622
- await Promise.all(paths.map(async (path, index) => {
2659
+ const storage = fs._initStorage(Object.keys(this.#paths).length);
2660
+ await Promise.all(Object.values(this.#paths).map(async (path, index) => {
2623
2661
  const code = await this.read(path);
2624
2662
  const fd = storage.get(index);
2625
2663
  fd.path = path;
2626
2664
  fd.code = code || "";
2627
2665
  }));
2628
- const ids = fs._initIds(Object.keys(this.ids).length);
2629
- Object.entries(this.ids).filter(([, path]) => path).forEach(([id, path], index) => {
2666
+ const ids = fs._initIds(Object.keys(this.#ids).length);
2667
+ Object.entries(this.#ids).filter(([, path]) => path).forEach(([id, path], index) => {
2630
2668
  const fileId = ids.get(index);
2631
2669
  fileId.id = id;
2632
2670
  fileId.path = path;
2633
2671
  });
2634
- const metadata = fs._initMetadata(Object.keys(this.metadata).length);
2635
- Object.entries(this.metadata).filter(([, value]) => value).forEach(([id, value], index) => {
2672
+ const metadata = fs._initMetadata(Object.keys(this.#metadata).length);
2673
+ Object.entries(this.#metadata).filter(([, value]) => value).forEach(([id, value], index) => {
2636
2674
  const fileMetadata = metadata.get(index);
2637
2675
  fileMetadata.id = id;
2638
2676
  fileMetadata.type = value.type;
@@ -2720,7 +2758,9 @@ var PowerlinesContext = class _PowerlinesContext {
2720
2758
  *
2721
2759
  * @internal
2722
2760
  */
2723
- #internal = {};
2761
+ #internal = {
2762
+ entry: []
2763
+ };
2724
2764
  #workspaceConfig;
2725
2765
  #checksum = null;
2726
2766
  #buildId = uuid();
@@ -2812,10 +2852,6 @@ var PowerlinesContext = class _PowerlinesContext {
2812
2852
  */
2813
2853
  resolver;
2814
2854
  /**
2815
- * An internal object containing the added resolved entry type definitions for the project.
2816
- */
2817
- _entry = null;
2818
- /**
2819
2855
  * The resolved configuration options
2820
2856
  */
2821
2857
  resolvePatterns = [];
@@ -2845,13 +2881,13 @@ var PowerlinesContext = class _PowerlinesContext {
2845
2881
  * The resolved entry type definitions for the project
2846
2882
  */
2847
2883
  get entry() {
2848
- return resolveEntriesSync(this, !this._entry || this._entry.length === 0 ? toArray(this.config.entry) : this._entry);
2884
+ return resolveEntriesSync(this, !this.$$internal.entry || this.$$internal.entry.length === 0 ? toArray(this.config.entry) : this.$$internal.entry);
2849
2885
  }
2850
2886
  /**
2851
2887
  * Sets the resolved entry type definitions for the project
2852
2888
  */
2853
2889
  set entry(value) {
2854
- this._entry = value;
2890
+ this.$$internal.entry = value;
2855
2891
  }
2856
2892
  /**
2857
2893
  * The TypeScript configuration parsed from the tsconfig file
@@ -3308,26 +3344,28 @@ var PowerlinesContext = class _PowerlinesContext {
3308
3344
  */
3309
3345
  async emitEntry(code, path, options = {}) {
3310
3346
  const entryPath = appendPath(replacePath(replacePath(replacePath(path, this.entryPath), this.config.projectRoot), this.workspaceConfig.workspaceRoot), this.entryPath);
3311
- this._entry ??= [];
3312
- this._entry.push({
3313
- name: options.name,
3314
- file: entryPath,
3315
- input: options.input,
3316
- output: options.output
3317
- });
3318
- return this.emit(code, entryPath, defu7(omit(options, [
3319
- "name"
3320
- ]), {
3347
+ if (this.$$internal.entry) {
3348
+ this.$$internal.entry.push({
3349
+ name: options.name,
3350
+ file: entryPath,
3351
+ input: options.input,
3352
+ output: options.output
3353
+ });
3354
+ }
3355
+ return this.emit(code, entryPath, defu7({
3321
3356
  meta: {
3322
3357
  type: "entry",
3323
3358
  properties: {
3324
- name: options.name,
3325
- output: options.output,
3326
- "input.file": options.input?.file,
3327
- "input.name": options.input?.name
3359
+ file: entryPath,
3360
+ name: options?.name,
3361
+ output: options?.output,
3362
+ "input.file": options?.input?.file,
3363
+ "input.name": options?.input?.name
3328
3364
  }
3329
3365
  }
3330
- }));
3366
+ }, omit(options, [
3367
+ "name"
3368
+ ])));
3331
3369
  }
3332
3370
  /**
3333
3371
  * Synchronously resolves a entry virtual file and writes it to the VFS if it does not already exist
@@ -3338,26 +3376,28 @@ var PowerlinesContext = class _PowerlinesContext {
3338
3376
  */
3339
3377
  emitEntrySync(code, path, options = {}) {
3340
3378
  const entryPath = appendPath(replacePath(replacePath(replacePath(path, this.entryPath), this.config.projectRoot), this.workspaceConfig.workspaceRoot), this.entryPath);
3341
- this._entry ??= [];
3342
- this._entry.push({
3343
- name: options?.name,
3344
- file: entryPath,
3345
- input: options?.input,
3346
- output: options?.output
3347
- });
3348
- return this.emitSync(code, entryPath, defu7(omit(options, [
3349
- "name"
3350
- ]), {
3379
+ if (this.$$internal.entry) {
3380
+ this.$$internal.entry.push({
3381
+ name: options?.name,
3382
+ file: entryPath,
3383
+ input: options?.input,
3384
+ output: options?.output
3385
+ });
3386
+ }
3387
+ return this.emitSync(code, entryPath, defu7({
3351
3388
  meta: {
3352
3389
  type: "entry",
3353
3390
  properties: {
3391
+ file: entryPath,
3354
3392
  name: options?.name,
3355
3393
  output: options?.output,
3356
3394
  "input.file": options?.input?.file,
3357
3395
  "input.name": options?.input?.name
3358
3396
  }
3359
3397
  }
3360
- }));
3398
+ }, omit(options, [
3399
+ "name"
3400
+ ])));
3361
3401
  }
3362
3402
  /**
3363
3403
  * Resolves a builtin virtual file and writes it to the VFS if it does not already exist
@@ -4297,7 +4337,8 @@ var PowerlinesAPI = class _PowerlinesAPI {
4297
4337
  const api = new _PowerlinesAPI(await PowerlinesAPIContext.from(workspaceRoot, config));
4298
4338
  api.#context.$$internal = {
4299
4339
  api,
4300
- addPlugin: api.#addPlugin.bind(api)
4340
+ addPlugin: api.#addPlugin.bind(api),
4341
+ entry: []
4301
4342
  };
4302
4343
  for (const plugin of api.context.config.plugins ?? []) {
4303
4344
  await api.#addPlugin(plugin);
@@ -4940,5 +4981,5 @@ Note: Please ensure the plugin package's default export is a class that extends
4940
4981
  };
4941
4982
 
4942
4983
  export { FileId, FileMetadata, FileMetadata_KeyValuePair, FileStorage, FileSystem, PowerlinesAPI, _capnpFileId, combineContexts, createLog, extendLog, isUnpluginBuilderVariant };
4943
- //# sourceMappingURL=chunk-STSTFZT2.js.map
4944
- //# sourceMappingURL=chunk-STSTFZT2.js.map
4984
+ //# sourceMappingURL=chunk-3XEOJ3TS.js.map
4985
+ //# sourceMappingURL=chunk-3XEOJ3TS.js.map
@@ -0,0 +1,12 @@
1
+ 'use strict';
2
+
3
+ var chunkC3TWAGFQ_cjs = require('./chunk-C3TWAGFQ.cjs');
4
+ var unplugin = require('unplugin');
5
+
6
+ var webpack = unplugin.createWebpackPlugin(chunkC3TWAGFQ_cjs.createUnpluginFactory("webpack"));
7
+ var webpack_default = webpack;
8
+
9
+ exports.webpack = webpack;
10
+ exports.webpack_default = webpack_default;
11
+ //# sourceMappingURL=chunk-4QCZWJMW.cjs.map
12
+ //# sourceMappingURL=chunk-4QCZWJMW.cjs.map
@@ -1,9 +1,9 @@
1
- import { createUnpluginFactory } from './chunk-7Q4TUBXJ.js';
1
+ import { createUnpluginFactory } from './chunk-Z7KIQFLN.js';
2
2
  import { createRolldownPlugin } from 'unplugin';
3
3
 
4
4
  var rolldown = createRolldownPlugin(createUnpluginFactory("rolldown"));
5
5
  var rolldown_default = rolldown;
6
6
 
7
7
  export { rolldown, rolldown_default };
8
- //# sourceMappingURL=chunk-GUFYA64E.js.map
9
- //# sourceMappingURL=chunk-GUFYA64E.js.map
8
+ //# sourceMappingURL=chunk-APLBM72X.js.map
9
+ //# sourceMappingURL=chunk-APLBM72X.js.map
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkJ7FOWGCH_cjs = require('./chunk-J7FOWGCH.cjs');
3
+ var chunkR7IUNKL4_cjs = require('./chunk-R7IUNKL4.cjs');
4
4
  var chunkPK6SKIKE_cjs = require('./chunk-PK6SKIKE.cjs');
5
5
  var types = require('@storm-software/config-tools/types');
6
6
  var getWorkspaceRoot = require('@stryke/fs/get-workspace-root');
@@ -27,7 +27,7 @@ chunkPK6SKIKE_cjs.__name(getString, "getString");
27
27
  // src/lib/unplugin/factory.ts
28
28
  function createUnpluginFactory(variant, decorate) {
29
29
  return (config, meta) => {
30
- const log = chunkJ7FOWGCH_cjs.createLog("unplugin", config);
30
+ const log = chunkR7IUNKL4_cjs.createLog("unplugin", config);
31
31
  log(types.LogLevelLabel.DEBUG, "Initializing Unplugin");
32
32
  try {
33
33
  const userConfig = {
@@ -38,7 +38,7 @@ function createUnpluginFactory(variant, decorate) {
38
38
  let api;
39
39
  async function buildStart() {
40
40
  log(types.LogLevelLabel.DEBUG, "Powerlines build plugin starting...");
41
- api = await chunkJ7FOWGCH_cjs.PowerlinesAPI.from(getWorkspaceRoot.getWorkspaceRoot(process.cwd()), userConfig);
41
+ api = await chunkR7IUNKL4_cjs.PowerlinesAPI.from(getWorkspaceRoot.getWorkspaceRoot(process.cwd()), userConfig);
42
42
  unplugin.setParseImpl(api.context.parse);
43
43
  log(types.LogLevelLabel.DEBUG, "Preparing build artifacts for the Powerlines project...");
44
44
  await api.prepare({
@@ -137,5 +137,5 @@ chunkPK6SKIKE_cjs.__name(createUnpluginFactory, "createUnpluginFactory");
137
137
 
138
138
  exports.createUnpluginFactory = createUnpluginFactory;
139
139
  exports.getString = getString;
140
- //# sourceMappingURL=chunk-LQZK77AH.cjs.map
141
- //# sourceMappingURL=chunk-LQZK77AH.cjs.map
140
+ //# sourceMappingURL=chunk-C3TWAGFQ.cjs.map
141
+ //# sourceMappingURL=chunk-C3TWAGFQ.cjs.map
@@ -1,5 +1,5 @@
1
1
  import { extractESBuildConfig } from './chunk-BGBDDKML.js';
2
- import { createUnpluginFactory } from './chunk-7Q4TUBXJ.js';
2
+ import { createUnpluginFactory } from './chunk-Z7KIQFLN.js';
3
3
  import { __name } from './chunk-7QVYU63E.js';
4
4
  import { isUndefined } from '@stryke/type-checks/is-undefined';
5
5
  import { createEsbuildPlugin } from 'unplugin';
@@ -29,5 +29,5 @@ var esbuild = createEsbuildPlugin(createUnpluginFactory("esbuild", (api, plugin)
29
29
  var esbuild_default = esbuild;
30
30
 
31
31
  export { esbuild, esbuild_default };
32
- //# sourceMappingURL=chunk-AQG66EUK.js.map
33
- //# sourceMappingURL=chunk-AQG66EUK.js.map
32
+ //# sourceMappingURL=chunk-D4L3REG4.js.map
33
+ //# sourceMappingURL=chunk-D4L3REG4.js.map
@@ -0,0 +1,12 @@
1
+ 'use strict';
2
+
3
+ var chunkC3TWAGFQ_cjs = require('./chunk-C3TWAGFQ.cjs');
4
+ var unplugin = require('unplugin');
5
+
6
+ var rolldown = unplugin.createRolldownPlugin(chunkC3TWAGFQ_cjs.createUnpluginFactory("rolldown"));
7
+ var rolldown_default = rolldown;
8
+
9
+ exports.rolldown = rolldown;
10
+ exports.rolldown_default = rolldown_default;
11
+ //# sourceMappingURL=chunk-D56IP3ZO.cjs.map
12
+ //# sourceMappingURL=chunk-D56IP3ZO.cjs.map
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var chunkSE3RCXWI_cjs = require('./chunk-SE3RCXWI.cjs');
4
- var chunkLQZK77AH_cjs = require('./chunk-LQZK77AH.cjs');
4
+ var chunkC3TWAGFQ_cjs = require('./chunk-C3TWAGFQ.cjs');
5
5
  var chunkPK6SKIKE_cjs = require('./chunk-PK6SKIKE.cjs');
6
6
  var environmentChecks = require('@stryke/env/environment-checks');
7
7
  var defu = require('defu');
@@ -97,7 +97,7 @@ function extractViteConfig(context) {
97
97
  chunkPK6SKIKE_cjs.__name(extractViteConfig, "extractViteConfig");
98
98
 
99
99
  // src/vite.ts
100
- var vite = unplugin.createVitePlugin(chunkLQZK77AH_cjs.createUnpluginFactory("vite", (api, plugin) => {
100
+ var vite = unplugin.createVitePlugin(chunkC3TWAGFQ_cjs.createUnpluginFactory("vite", (api, plugin) => {
101
101
  return {
102
102
  ...plugin,
103
103
  vite: {
@@ -158,5 +158,5 @@ var vite_default = vite;
158
158
 
159
159
  exports.vite = vite;
160
160
  exports.vite_default = vite_default;
161
- //# sourceMappingURL=chunk-KRQKJHEH.cjs.map
162
- //# sourceMappingURL=chunk-KRQKJHEH.cjs.map
161
+ //# sourceMappingURL=chunk-DWF4GVXQ.cjs.map
162
+ //# sourceMappingURL=chunk-DWF4GVXQ.cjs.map
@@ -1,9 +1,9 @@
1
- import { createUnpluginFactory } from './chunk-7Q4TUBXJ.js';
1
+ import { createUnpluginFactory } from './chunk-Z7KIQFLN.js';
2
2
  import { createWebpackPlugin } from 'unplugin';
3
3
 
4
4
  var webpack = createWebpackPlugin(createUnpluginFactory("webpack"));
5
5
  var webpack_default = webpack;
6
6
 
7
7
  export { webpack, webpack_default };
8
- //# sourceMappingURL=chunk-QVZ32P2J.js.map
9
- //# sourceMappingURL=chunk-QVZ32P2J.js.map
8
+ //# sourceMappingURL=chunk-PQ6DDPXP.js.map
9
+ //# sourceMappingURL=chunk-PQ6DDPXP.js.map