powerlines 0.40.18 → 0.40.19

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 (74) hide show
  1. package/dist/{api-BpPToWwp.mjs → api-D-RIxwbi.mjs} +30 -27
  2. package/dist/api-D-RIxwbi.mjs.map +1 -0
  3. package/dist/{api-CMZBG3oq.cjs → api-Dspa27jK.cjs} +29 -26
  4. package/dist/astro.cjs +2 -2
  5. package/dist/astro.d.mts +1 -1
  6. package/dist/astro.mjs +2 -2
  7. package/dist/context/index.cjs +1 -1
  8. package/dist/context/index.d.mts +1 -1
  9. package/dist/context/index.mjs +1 -1
  10. package/dist/{esbuild-DhtbXiqW.cjs → esbuild-BblRTl0L.cjs} +1 -1
  11. package/dist/{esbuild-Cvb9P_ZW.mjs → esbuild-xbqsWwqN.mjs} +2 -2
  12. package/dist/{esbuild-Cvb9P_ZW.mjs.map → esbuild-xbqsWwqN.mjs.map} +1 -1
  13. package/dist/esbuild.cjs +2 -2
  14. package/dist/esbuild.d.mts +1 -1
  15. package/dist/esbuild.mjs +2 -2
  16. package/dist/farm.cjs +1 -1
  17. package/dist/farm.d.mts +1 -1
  18. package/dist/farm.mjs +1 -1
  19. package/dist/{index-C1wDpmrr.d.mts → index-2JXW-b2-.d.mts} +2 -2
  20. package/dist/{index-C1wDpmrr.d.mts.map → index-2JXW-b2-.d.mts.map} +1 -1
  21. package/dist/index.cjs +1 -1
  22. package/dist/index.d.cts +1 -1
  23. package/dist/index.d.mts +1 -1
  24. package/dist/index.mjs +1 -1
  25. package/dist/next.cjs +2 -2
  26. package/dist/next.mjs +2 -2
  27. package/dist/nuxt.cjs +3 -3
  28. package/dist/nuxt.d.mts +1 -1
  29. package/dist/nuxt.mjs +3 -3
  30. package/dist/{plugin-Ba95Lv5d.d.cts → plugin-B9TQt-p0.d.cts} +2 -2
  31. package/dist/{plugin-Ba95Lv5d.d.cts.map → plugin-B9TQt-p0.d.cts.map} +1 -1
  32. package/dist/plugin-utils.d.mts +1 -1
  33. package/dist/{rolldown-CGkyfhQb.cjs → rolldown-CJwfgimU.cjs} +1 -1
  34. package/dist/{rolldown-msQVl4gL.mjs → rolldown-DM-vGV3t.mjs} +2 -2
  35. package/dist/{rolldown-msQVl4gL.mjs.map → rolldown-DM-vGV3t.mjs.map} +1 -1
  36. package/dist/rolldown.cjs +2 -2
  37. package/dist/rolldown.d.mts +1 -1
  38. package/dist/rolldown.mjs +2 -2
  39. package/dist/rollup.cjs +1 -1
  40. package/dist/rollup.d.mts +1 -1
  41. package/dist/rollup.mjs +1 -1
  42. package/dist/rspack.cjs +1 -1
  43. package/dist/rspack.d.mts +1 -1
  44. package/dist/rspack.mjs +1 -1
  45. package/dist/storage/index.d.mts +1 -1
  46. package/dist/tsdown.cjs +3 -3
  47. package/dist/tsdown.d.mts +1 -1
  48. package/dist/tsdown.mjs +3 -3
  49. package/dist/tsdown.mjs.map +1 -1
  50. package/dist/tsup.cjs +2 -2
  51. package/dist/tsup.d.mts +1 -1
  52. package/dist/tsup.mjs +2 -2
  53. package/dist/typescript/index.d.mts +1 -1
  54. package/dist/unloader.cjs +1 -1
  55. package/dist/unloader.d.mts +1 -1
  56. package/dist/unloader.mjs +1 -1
  57. package/dist/unplugin.cjs +1 -1
  58. package/dist/unplugin.d.cts +1 -1
  59. package/dist/unplugin.d.mts +1 -1
  60. package/dist/unplugin.mjs +1 -1
  61. package/dist/{vite-CEZ8iJOi.mjs → vite-5WSLwM5t.mjs} +2 -2
  62. package/dist/{vite-CEZ8iJOi.mjs.map → vite-5WSLwM5t.mjs.map} +1 -1
  63. package/dist/{vite-kYt2G76D.cjs → vite-D-f0L5Sn.cjs} +1 -1
  64. package/dist/vite.cjs +2 -2
  65. package/dist/vite.d.mts +1 -1
  66. package/dist/vite.mjs +2 -2
  67. package/dist/{webpack-47f2tjtr.cjs → webpack-CKrlgWVq.cjs} +1 -1
  68. package/dist/{webpack-DBUxefMB.mjs → webpack-z0CSoK50.mjs} +2 -2
  69. package/dist/{webpack-DBUxefMB.mjs.map → webpack-z0CSoK50.mjs.map} +1 -1
  70. package/dist/webpack.cjs +2 -2
  71. package/dist/webpack.d.mts +1 -1
  72. package/dist/webpack.mjs +2 -2
  73. package/package.json +29 -29
  74. package/dist/api-BpPToWwp.mjs.map +0 -1
@@ -70,7 +70,7 @@ import { setParseImpl } from "unplugin";
70
70
 
71
71
  //#region package.json
72
72
  var name = "powerlines";
73
- var version = "0.40.18";
73
+ var version = "0.40.19";
74
74
 
75
75
  //#endregion
76
76
  //#region src/_internal/helpers/generate-types.ts
@@ -2124,7 +2124,7 @@ var PowerlinesContext = class PowerlinesContext {
2124
2124
  return {
2125
2125
  id: result,
2126
2126
  external: !match(moduleId, this.config.resolve.noExternal) && (match(moduleId, this.config.resolve.external) || moduleId.startsWith("node:") || this.fs.isVirtual(moduleId) && this.config.projectType !== "application" || this.config.resolve.skipNodeModulesBundle && !/^[A-Z]:[/\\]|^\.{0,2}\/|^\.{1,2}$/.test(moduleId)),
2127
- virtual: this.fs.isVirtual(moduleId)
2127
+ virtual: true
2128
2128
  };
2129
2129
  }
2130
2130
  if (this.config.resolve.skipNodeModulesBundle) {
@@ -2624,8 +2624,8 @@ function isUnpluginBuilderVariant(str) {
2624
2624
 
2625
2625
  //#endregion
2626
2626
  //#region ../core/src/lib/unplugin/module-resolution.ts
2627
- const VIRTUAL_MODULE_PREFIX = "powerlines-virtual:";
2628
- const VIRTUAL_MODULE_PREFIX_REGEX = /^powerlines-virtual:/;
2627
+ const VIRTUAL_MODULE_PREFIX = "__powerlines-virtual:";
2628
+ const VIRTUAL_MODULE_PREFIX_REGEX = /^__powerlines-virtual:/;
2629
2629
  /**
2630
2630
  * Creates the module resolution hook functions for a Powerlines unplugin plugin instance.
2631
2631
  *
@@ -2683,28 +2683,31 @@ function createUnpluginModuleResolutionFunctions(context, options = {}) {
2683
2683
  };
2684
2684
  return null;
2685
2685
  },
2686
- load: { async handler(id) {
2687
- const moduleId = id.replace(VIRTUAL_MODULE_PREFIX_REGEX, "");
2688
- let result = await ctx.$$internal.callHook("load", {
2689
- sequential: true,
2690
- result: "first",
2691
- order: "pre"
2692
- }, moduleId);
2693
- if (result) return result;
2694
- result = await ctx.$$internal.callHook("load", {
2695
- sequential: true,
2696
- result: "first",
2697
- order: "normal"
2698
- }, moduleId);
2699
- if (result) return result;
2700
- result = await ctx.load(moduleId);
2701
- if (result) return result;
2702
- return ctx.$$internal.callHook("load", {
2703
- sequential: true,
2704
- result: "first",
2705
- order: "post"
2706
- }, moduleId);
2707
- } }
2686
+ load: {
2687
+ filter: options.prefix ? { id: { include: VIRTUAL_MODULE_PREFIX_REGEX } } : void 0,
2688
+ async handler(id) {
2689
+ const moduleId = id.replace(VIRTUAL_MODULE_PREFIX_REGEX, "");
2690
+ let result = await ctx.$$internal.callHook("load", {
2691
+ sequential: true,
2692
+ result: "first",
2693
+ order: "pre"
2694
+ }, moduleId);
2695
+ if (result) return result;
2696
+ result = await ctx.$$internal.callHook("load", {
2697
+ sequential: true,
2698
+ result: "first",
2699
+ order: "normal"
2700
+ }, moduleId);
2701
+ if (result) return result;
2702
+ result = await ctx.load(moduleId);
2703
+ if (result) return result;
2704
+ return ctx.$$internal.callHook("load", {
2705
+ sequential: true,
2706
+ result: "first",
2707
+ order: "post"
2708
+ }, moduleId);
2709
+ }
2710
+ }
2708
2711
  };
2709
2712
  }
2710
2713
 
@@ -3845,4 +3848,4 @@ Note: Please ensure the plugin package's default export is a class that extends
3845
3848
 
3846
3849
  //#endregion
3847
3850
  export { _capnpFileId as _, createUnpluginFactory as a, createUnpluginModuleResolutionFunctions as c, PowerlinesContext as d, FileId as f, FileSystem as g, FileStorage as h, createPluginContext as i, combineContexts as l, FileMetadata_KeyValuePair as m, PowerlinesAPIContext as n, createUnplugin as o, FileMetadata as p, PowerlinesEnvironmentContext as r, createUnpluginResolver as s, PowerlinesAPI as t, isUnpluginBuilderVariant as u, name as v, version as y };
3848
- //# sourceMappingURL=api-BpPToWwp.mjs.map
3851
+ //# sourceMappingURL=api-D-RIxwbi.mjs.map