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.
- package/dist/{api-BpPToWwp.mjs → api-D-RIxwbi.mjs} +30 -27
- package/dist/api-D-RIxwbi.mjs.map +1 -0
- package/dist/{api-CMZBG3oq.cjs → api-Dspa27jK.cjs} +29 -26
- package/dist/astro.cjs +2 -2
- package/dist/astro.d.mts +1 -1
- package/dist/astro.mjs +2 -2
- package/dist/context/index.cjs +1 -1
- package/dist/context/index.d.mts +1 -1
- package/dist/context/index.mjs +1 -1
- package/dist/{esbuild-DhtbXiqW.cjs → esbuild-BblRTl0L.cjs} +1 -1
- package/dist/{esbuild-Cvb9P_ZW.mjs → esbuild-xbqsWwqN.mjs} +2 -2
- package/dist/{esbuild-Cvb9P_ZW.mjs.map → esbuild-xbqsWwqN.mjs.map} +1 -1
- package/dist/esbuild.cjs +2 -2
- package/dist/esbuild.d.mts +1 -1
- package/dist/esbuild.mjs +2 -2
- package/dist/farm.cjs +1 -1
- package/dist/farm.d.mts +1 -1
- package/dist/farm.mjs +1 -1
- package/dist/{index-C1wDpmrr.d.mts → index-2JXW-b2-.d.mts} +2 -2
- package/dist/{index-C1wDpmrr.d.mts.map → index-2JXW-b2-.d.mts.map} +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.mjs +1 -1
- package/dist/next.cjs +2 -2
- package/dist/next.mjs +2 -2
- package/dist/nuxt.cjs +3 -3
- package/dist/nuxt.d.mts +1 -1
- package/dist/nuxt.mjs +3 -3
- package/dist/{plugin-Ba95Lv5d.d.cts → plugin-B9TQt-p0.d.cts} +2 -2
- package/dist/{plugin-Ba95Lv5d.d.cts.map → plugin-B9TQt-p0.d.cts.map} +1 -1
- package/dist/plugin-utils.d.mts +1 -1
- package/dist/{rolldown-CGkyfhQb.cjs → rolldown-CJwfgimU.cjs} +1 -1
- package/dist/{rolldown-msQVl4gL.mjs → rolldown-DM-vGV3t.mjs} +2 -2
- package/dist/{rolldown-msQVl4gL.mjs.map → rolldown-DM-vGV3t.mjs.map} +1 -1
- package/dist/rolldown.cjs +2 -2
- package/dist/rolldown.d.mts +1 -1
- package/dist/rolldown.mjs +2 -2
- package/dist/rollup.cjs +1 -1
- package/dist/rollup.d.mts +1 -1
- package/dist/rollup.mjs +1 -1
- package/dist/rspack.cjs +1 -1
- package/dist/rspack.d.mts +1 -1
- package/dist/rspack.mjs +1 -1
- package/dist/storage/index.d.mts +1 -1
- package/dist/tsdown.cjs +3 -3
- package/dist/tsdown.d.mts +1 -1
- package/dist/tsdown.mjs +3 -3
- package/dist/tsdown.mjs.map +1 -1
- package/dist/tsup.cjs +2 -2
- package/dist/tsup.d.mts +1 -1
- package/dist/tsup.mjs +2 -2
- package/dist/typescript/index.d.mts +1 -1
- package/dist/unloader.cjs +1 -1
- package/dist/unloader.d.mts +1 -1
- package/dist/unloader.mjs +1 -1
- package/dist/unplugin.cjs +1 -1
- package/dist/unplugin.d.cts +1 -1
- package/dist/unplugin.d.mts +1 -1
- package/dist/unplugin.mjs +1 -1
- package/dist/{vite-CEZ8iJOi.mjs → vite-5WSLwM5t.mjs} +2 -2
- package/dist/{vite-CEZ8iJOi.mjs.map → vite-5WSLwM5t.mjs.map} +1 -1
- package/dist/{vite-kYt2G76D.cjs → vite-D-f0L5Sn.cjs} +1 -1
- package/dist/vite.cjs +2 -2
- package/dist/vite.d.mts +1 -1
- package/dist/vite.mjs +2 -2
- package/dist/{webpack-47f2tjtr.cjs → webpack-CKrlgWVq.cjs} +1 -1
- package/dist/{webpack-DBUxefMB.mjs → webpack-z0CSoK50.mjs} +2 -2
- package/dist/{webpack-DBUxefMB.mjs.map → webpack-z0CSoK50.mjs.map} +1 -1
- package/dist/webpack.cjs +2 -2
- package/dist/webpack.d.mts +1 -1
- package/dist/webpack.mjs +2 -2
- package/package.json +29 -29
- 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.
|
|
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:
|
|
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 = "
|
|
2628
|
-
const VIRTUAL_MODULE_PREFIX_REGEX = /^
|
|
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: {
|
|
2687
|
-
|
|
2688
|
-
|
|
2689
|
-
|
|
2690
|
-
result
|
|
2691
|
-
|
|
2692
|
-
|
|
2693
|
-
|
|
2694
|
-
|
|
2695
|
-
|
|
2696
|
-
result
|
|
2697
|
-
|
|
2698
|
-
|
|
2699
|
-
|
|
2700
|
-
|
|
2701
|
-
|
|
2702
|
-
|
|
2703
|
-
|
|
2704
|
-
|
|
2705
|
-
|
|
2706
|
-
|
|
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-
|
|
3851
|
+
//# sourceMappingURL=api-D-RIxwbi.mjs.map
|