powerlines 0.23.6 → 0.23.9
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-DxPACGY4.d.ts → api-5H3zEedD.d.ts} +1 -1
- package/dist/{api--9pVSIbm.d.cts → api-B77aqxGC.d.cts} +1 -1
- package/dist/api.cjs +2 -2
- package/dist/api.d.cts +2 -2
- package/dist/api.d.ts +2 -2
- package/dist/api.js +1 -1
- package/dist/astro.cjs +16 -18
- package/dist/astro.d.cts +8 -6
- package/dist/astro.d.ts +8 -6
- package/dist/astro.js +16 -5
- package/dist/{chunk-Q3ZFML4W.cjs → chunk-2QLM4MYP.cjs} +2 -2
- package/dist/{chunk-62BQYRPM.cjs → chunk-6ZKM7WOB.cjs} +33 -20
- package/dist/{chunk-E4M4KEL3.js → chunk-FDEGM4CR.js} +33 -21
- package/dist/{chunk-I3EUY74Q.cjs → chunk-FJWXCUGQ.cjs} +20 -18
- package/dist/{chunk-4OAW547A.cjs → chunk-G5K3I7JU.cjs} +2 -2
- package/dist/{chunk-VRFJDHDN.cjs → chunk-ITL6JGKX.cjs} +2 -2
- package/dist/{chunk-W36NC3B7.js → chunk-KOBCKTHY.js} +1 -1
- package/dist/{chunk-GZNJUK7U.js → chunk-RKMUBSYG.js} +17 -17
- package/dist/{chunk-5CCEQUAZ.js → chunk-S47BU5QR.js} +1 -1
- package/dist/{chunk-XWBVMNBI.js → chunk-UYJXRMS3.js} +1 -1
- package/dist/config.d.cts +2 -2
- package/dist/config.d.ts +2 -2
- package/dist/esbuild.cjs +6 -6
- package/dist/esbuild.d.cts +5 -4
- package/dist/esbuild.d.ts +5 -4
- package/dist/esbuild.js +3 -3
- package/dist/farm.cjs +3 -3
- package/dist/farm.d.cts +9 -7
- package/dist/farm.d.ts +9 -7
- package/dist/farm.js +2 -2
- package/dist/index.cjs +14 -32
- package/dist/index.d.cts +2 -10
- package/dist/index.d.ts +2 -10
- package/dist/index.js +2 -16
- package/dist/lib/{api-B6hfFxVS.d.ts → api-Cm51oVbC.d.cts} +1 -1
- package/dist/lib/{api-CD2QlMig.d.cts → api-mja4jirh.d.ts} +1 -1
- package/dist/lib/build/esbuild.d.cts +1 -1
- package/dist/lib/build/esbuild.d.ts +1 -1
- package/dist/lib/build/index.d.cts +3 -3
- package/dist/lib/build/index.d.ts +3 -3
- package/dist/lib/build/rolldown.d.cts +1 -1
- package/dist/lib/build/rolldown.d.ts +1 -1
- package/dist/lib/build/rollup.d.cts +1 -1
- package/dist/lib/build/rollup.d.ts +1 -1
- package/dist/lib/build/rspack.d.cts +1 -1
- package/dist/lib/build/rspack.d.ts +1 -1
- package/dist/lib/build/tsup.d.cts +1 -1
- package/dist/lib/build/tsup.d.ts +1 -1
- package/dist/lib/build/unbuild.d.cts +3 -3
- package/dist/lib/build/unbuild.d.ts +3 -3
- package/dist/lib/build/vite.d.cts +1 -1
- package/dist/lib/build/vite.d.ts +1 -1
- package/dist/lib/build/webpack.d.cts +1 -1
- package/dist/lib/build/webpack.d.ts +1 -1
- package/dist/lib/{chunk-CCGA6ZHZ.cjs → chunk-3KR6TYGW.cjs} +13 -13
- package/dist/lib/{chunk-764HUXP3.js → chunk-63MH3ERQ.js} +25 -4
- package/dist/lib/{chunk-XW5TELHB.cjs → chunk-7JAGT5GC.cjs} +10 -3
- package/dist/lib/{chunk-EN4XP4D5.js → chunk-AHONHQGB.js} +1 -1
- package/dist/lib/{chunk-EJTGOYSI.cjs → chunk-B3DJ4CXY.cjs} +10 -10
- package/dist/lib/{chunk-NDKPSA3I.js → chunk-BGGENJH4.js} +2 -2
- package/dist/lib/{chunk-NVUXGMU5.cjs → chunk-LQEGZT5U.cjs} +25 -4
- package/dist/lib/{chunk-SZH2DJOG.js → chunk-OI7EHXNE.js} +3 -3
- package/dist/lib/{chunk-ZPIKFR7Z.js → chunk-PVCAB6BZ.js} +10 -3
- package/dist/lib/{chunk-27RAXIPT.cjs → chunk-SMZ672RP.cjs} +6 -6
- package/dist/lib/{config-DeUaQYc_.d.ts → config-7Q2dBjJE.d.ts} +7 -1
- package/dist/lib/{config-DTSdCZsw.d.cts → config-BnJpgcGr.d.cts} +7 -1
- package/dist/lib/config-file.cjs +3 -3
- package/dist/lib/config-file.d.cts +3 -2
- package/dist/lib/config-file.d.ts +3 -2
- package/dist/lib/config-file.js +1 -1
- package/dist/lib/contexts/api-context.cjs +5 -5
- package/dist/lib/contexts/api-context.d.cts +3 -3
- package/dist/lib/contexts/api-context.d.ts +3 -3
- package/dist/lib/contexts/api-context.js +4 -4
- package/dist/lib/contexts/context.cjs +3 -3
- package/dist/lib/contexts/context.d.cts +10 -3
- package/dist/lib/contexts/context.d.ts +10 -3
- package/dist/lib/contexts/context.js +2 -2
- package/dist/lib/contexts/environment-context.cjs +4 -4
- package/dist/lib/contexts/environment-context.d.cts +3 -3
- package/dist/lib/contexts/environment-context.d.ts +3 -3
- package/dist/lib/contexts/environment-context.js +3 -3
- package/dist/lib/contexts/index.cjs +7 -7
- package/dist/lib/contexts/index.d.cts +3 -3
- package/dist/lib/contexts/index.d.ts +3 -3
- package/dist/lib/contexts/index.js +4 -4
- package/dist/lib/contexts/plugin-context.d.cts +3 -3
- package/dist/lib/contexts/plugin-context.d.ts +3 -3
- package/dist/lib/entry.d.cts +1 -1
- package/dist/lib/entry.d.ts +1 -1
- package/dist/lib/index.cjs +12 -12
- package/dist/lib/index.d.cts +4 -3
- package/dist/lib/index.d.ts +4 -3
- package/dist/lib/index.js +5 -5
- package/dist/lib/{internal-CpVMJCaU.d.ts → internal-BEygquYh.d.ts} +2 -2
- package/dist/lib/{internal-ypnrUNZy.d.cts → internal-BeR8fOB1.d.cts} +2 -2
- package/dist/lib/logger.d.cts +1 -1
- package/dist/lib/logger.d.ts +1 -1
- package/dist/lib/typescript/compiler-host.d.cts +1 -1
- package/dist/lib/typescript/compiler-host.d.ts +1 -1
- package/dist/lib/typescript/import-transformer.d.cts +1 -1
- package/dist/lib/typescript/import-transformer.d.ts +1 -1
- package/dist/lib/typescript/index.d.cts +1 -1
- package/dist/lib/typescript/index.d.ts +1 -1
- package/dist/lib/typescript/program.d.cts +1 -1
- package/dist/lib/typescript/program.d.ts +1 -1
- package/dist/lib/typescript/ts-morph.d.cts +1 -1
- package/dist/lib/typescript/ts-morph.d.ts +1 -1
- package/dist/lib/unplugin/factory.cjs +6 -6
- package/dist/lib/unplugin/factory.d.cts +4 -16
- package/dist/lib/unplugin/factory.d.ts +4 -16
- package/dist/lib/unplugin/factory.js +5 -5
- package/dist/lib/unplugin/helpers.d.cts +1 -1
- package/dist/lib/unplugin/helpers.d.ts +1 -1
- package/dist/lib/unplugin/index.cjs +6 -6
- package/dist/lib/unplugin/index.d.cts +3 -2
- package/dist/lib/unplugin/index.d.ts +3 -2
- package/dist/lib/unplugin/index.js +5 -5
- package/dist/lib/unplugin/plugin.d.cts +5 -3
- package/dist/lib/unplugin/plugin.d.ts +5 -3
- package/dist/lib/unplugin/resolve-id.d.cts +1 -1
- package/dist/lib/unplugin/resolve-id.d.ts +1 -1
- package/dist/lib/unplugin-CbbNDduM.d.ts +18 -0
- package/dist/lib/unplugin-ppAOzR__.d.cts +18 -0
- package/dist/lib/utilities/bundle.d.cts +1 -1
- package/dist/lib/utilities/bundle.d.ts +1 -1
- package/dist/lib/utilities/cache.d.cts +1 -1
- package/dist/lib/utilities/cache.d.ts +1 -1
- package/dist/lib/utilities/file-header.d.cts +1 -1
- package/dist/lib/utilities/file-header.d.ts +1 -1
- package/dist/lib/utilities/index.d.cts +1 -1
- package/dist/lib/utilities/index.d.ts +1 -1
- package/dist/lib/utilities/meta.d.cts +1 -1
- package/dist/lib/utilities/meta.d.ts +1 -1
- package/dist/lib/utilities/resolve-path.d.cts +1 -1
- package/dist/lib/utilities/resolve-path.d.ts +1 -1
- package/dist/lib/utilities/resolve.d.cts +1 -1
- package/dist/lib/utilities/resolve.d.ts +1 -1
- package/dist/lib/utilities/source-file.d.cts +1 -1
- package/dist/lib/utilities/source-file.d.ts +1 -1
- package/dist/lib/utilities/source-map.d.cts +1 -1
- package/dist/lib/utilities/source-map.d.ts +1 -1
- package/dist/lib/utilities/worker.d.cts +1 -1
- package/dist/lib/utilities/worker.d.ts +1 -1
- package/dist/lib/utilities/write-file.d.cts +1 -1
- package/dist/lib/utilities/write-file.d.ts +1 -1
- package/dist/next.cjs +21 -18
- package/dist/next.js +21 -5
- package/dist/nuxt.cjs +21 -18
- package/dist/nuxt.d.cts +12 -6
- package/dist/nuxt.d.ts +12 -6
- package/dist/nuxt.js +21 -5
- package/dist/plugin-utils/{context-DRFZE3XI.d.ts → context-Cg11S-CE.d.cts} +6 -0
- package/dist/plugin-utils/{context-DRFZE3XI.d.cts → context-Cg11S-CE.d.ts} +6 -0
- package/dist/plugin-utils/context-helpers.d.cts +1 -1
- package/dist/plugin-utils/context-helpers.d.ts +1 -1
- package/dist/plugin-utils/enforce.d.cts +1 -1
- package/dist/plugin-utils/enforce.d.ts +1 -1
- package/dist/plugin-utils/extend.d.cts +1 -1
- package/dist/plugin-utils/extend.d.ts +1 -1
- package/dist/plugin-utils/get-config-path.d.cts +1 -1
- package/dist/plugin-utils/get-config-path.d.ts +1 -1
- package/dist/plugin-utils/helpers.d.cts +1 -1
- package/dist/plugin-utils/helpers.d.ts +1 -1
- package/dist/plugin-utils/index.d.cts +1 -1
- package/dist/plugin-utils/index.d.ts +1 -1
- package/dist/plugin-utils/merge.d.cts +1 -1
- package/dist/plugin-utils/merge.d.ts +1 -1
- package/dist/plugin-utils/paths.d.cts +1 -1
- package/dist/plugin-utils/paths.d.ts +1 -1
- package/dist/{resolved-DKFZ11S7.d.ts → resolved-B3BSdXCt.d.ts} +13 -1
- package/dist/{resolved-C00CJgsk.d.cts → resolved-DGrpILrS.d.cts} +13 -1
- package/dist/rolldown.cjs +8 -16
- package/dist/rolldown.d.cts +5 -5
- package/dist/rolldown.d.ts +5 -5
- package/dist/rolldown.js +8 -3
- package/dist/rollup.cjs +8 -16
- package/dist/rollup.d.cts +5 -5
- package/dist/rollup.d.ts +5 -5
- package/dist/rollup.js +8 -3
- package/dist/rspack.cjs +8 -16
- package/dist/rspack.d.cts +3 -3
- package/dist/rspack.d.ts +3 -3
- package/dist/rspack.js +8 -3
- package/dist/tsup.cjs +40 -18
- package/dist/tsup.d.cts +3 -2
- package/dist/tsup.d.ts +3 -2
- package/dist/tsup.js +40 -5
- package/dist/types/api.d.cts +2 -2
- package/dist/types/api.d.ts +2 -2
- package/dist/types/babel.d.cts +1 -1
- package/dist/types/babel.d.ts +1 -1
- package/dist/types/commands.d.cts +1 -1
- package/dist/types/commands.d.ts +1 -1
- package/dist/types/config.d.cts +1 -1
- package/dist/types/config.d.ts +1 -1
- package/dist/types/context.d.cts +1 -1
- package/dist/types/context.d.ts +1 -1
- package/dist/types/hooks.d.cts +1 -1
- package/dist/types/hooks.d.ts +1 -1
- package/dist/types/index.d.cts +2 -2
- package/dist/types/index.d.ts +2 -2
- package/dist/types/internal.d.cts +2 -2
- package/dist/types/internal.d.ts +2 -2
- package/dist/types/plugin.d.cts +1 -1
- package/dist/types/plugin.d.ts +1 -1
- package/dist/types/resolved.d.cts +1 -1
- package/dist/types/resolved.d.ts +1 -1
- package/dist/types/unplugin.d.cts +2 -2
- package/dist/types/unplugin.d.ts +2 -2
- package/dist/unloader.cjs +8 -16
- package/dist/unloader.d.cts +7 -6
- package/dist/unloader.d.ts +7 -6
- package/dist/unloader.js +8 -3
- package/dist/unplugin.cjs +186 -26
- package/dist/unplugin.d.cts +58 -35
- package/dist/unplugin.d.ts +58 -35
- package/dist/unplugin.js +186 -16
- package/dist/vite.cjs +6 -6
- package/dist/vite.d.cts +7 -6
- package/dist/vite.d.ts +7 -6
- package/dist/vite.js +3 -3
- package/dist/webpack.cjs +6 -6
- package/dist/webpack.d.cts +5 -5
- package/dist/webpack.d.ts +5 -5
- package/dist/webpack.js +3 -3
- package/package.json +10 -10
- package/dist/babel-types.d.ts +0 -292
- package/dist/chunk-33BDG6M5.js +0 -38
- package/dist/chunk-3HOOIAF4.js +0 -7
- package/dist/chunk-AK5B45AH.js +0 -14
- package/dist/chunk-GHHMURR4.js +0 -7
- package/dist/chunk-GXJ5L37C.cjs +0 -10
- package/dist/chunk-IVABRCNA.js +0 -29
- package/dist/chunk-JJXDDTSL.cjs +0 -22
- package/dist/chunk-K5TOHSUD.cjs +0 -17
- package/dist/chunk-M7N6RX2H.js +0 -19
- package/dist/chunk-MAOXZVDE.cjs +0 -22
- package/dist/chunk-NWZXH2HK.cjs +0 -10
- package/dist/chunk-PFECSHR6.cjs +0 -41
- package/dist/chunk-RM37JA3L.cjs +0 -32
- package/dist/chunk-RVO5GC2H.cjs +0 -10
- package/dist/chunk-TSKJTJ2P.js +0 -19
- package/dist/chunk-XDNNFAQR.js +0 -7
- package/dist/chunk-YBOJFFO2.cjs +0 -10
- package/dist/chunk-ZOMJH52N.js +0 -7
package/dist/unplugin.js
CHANGED
|
@@ -1,19 +1,189 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
import './chunk-
|
|
4
|
-
import './chunk-ZOMJH52N.js';
|
|
5
|
-
import './chunk-33BDG6M5.js';
|
|
6
|
-
import './chunk-GHHMURR4.js';
|
|
7
|
-
import './chunk-AK5B45AH.js';
|
|
8
|
-
import './chunk-W36NC3B7.js';
|
|
9
|
-
import './chunk-TSKJTJ2P.js';
|
|
10
|
-
import './chunk-M7N6RX2H.js';
|
|
11
|
-
import './chunk-XWBVMNBI.js';
|
|
12
|
-
import './chunk-VBR53KGY.js';
|
|
13
|
-
import './chunk-5CCEQUAZ.js';
|
|
14
|
-
export { createUnpluginFactory } from './chunk-GZNJUK7U.js';
|
|
15
|
-
import './chunk-E4M4KEL3.js';
|
|
1
|
+
import { handleResolveId, getString } from './chunk-RKMUBSYG.js';
|
|
2
|
+
export { createUnpluginFactory, handleResolveId } from './chunk-RKMUBSYG.js';
|
|
3
|
+
import { extendLog } from './chunk-FDEGM4CR.js';
|
|
16
4
|
import './chunk-JQCWV4DT.js';
|
|
17
5
|
import './chunk-JKBJF3UI.js';
|
|
18
6
|
import './chunk-VT7NVLLU.js';
|
|
19
|
-
import './chunk-SHUYVCID.js';
|
|
7
|
+
import { __name } from './chunk-SHUYVCID.js';
|
|
8
|
+
import { LogLevelLabel } from '@storm-software/config-tools/types';
|
|
9
|
+
import { findFileName } from '@stryke/path/file-path-fns';
|
|
10
|
+
import { replaceExtension } from '@stryke/path/replace';
|
|
11
|
+
import { isString } from '@stryke/type-checks/is-string';
|
|
12
|
+
import { defu } from 'defu';
|
|
13
|
+
|
|
14
|
+
function combineContexts(context, unplugin) {
|
|
15
|
+
return defu(context, unplugin);
|
|
16
|
+
}
|
|
17
|
+
__name(combineContexts, "combineContexts");
|
|
18
|
+
|
|
19
|
+
// src/lib/unplugin/plugin.ts
|
|
20
|
+
function createUnplugin(context, options = {}) {
|
|
21
|
+
const ctx = context;
|
|
22
|
+
return () => {
|
|
23
|
+
const log = extendLog(ctx.log, "unplugin");
|
|
24
|
+
log(LogLevelLabel.DEBUG, "Initializing Unplugin");
|
|
25
|
+
try {
|
|
26
|
+
async function buildStart() {
|
|
27
|
+
log(LogLevelLabel.DEBUG, "Powerlines build plugin starting...");
|
|
28
|
+
await ctx.$$internal.callHook("buildStart", {
|
|
29
|
+
sequential: true
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
__name(buildStart, "buildStart");
|
|
33
|
+
async function resolveId(id, importer, opts = {
|
|
34
|
+
isEntry: false
|
|
35
|
+
}) {
|
|
36
|
+
const resolved = await (async () => {
|
|
37
|
+
let result = await ctx.$$internal.callHook("resolveId", {
|
|
38
|
+
sequential: true,
|
|
39
|
+
result: "first",
|
|
40
|
+
order: "pre"
|
|
41
|
+
}, id, importer, opts);
|
|
42
|
+
if (result) {
|
|
43
|
+
return result;
|
|
44
|
+
}
|
|
45
|
+
result = await ctx.$$internal.callHook("resolveId", {
|
|
46
|
+
sequential: true,
|
|
47
|
+
result: "first",
|
|
48
|
+
order: "normal"
|
|
49
|
+
}, id, importer, opts);
|
|
50
|
+
if (result) {
|
|
51
|
+
return result;
|
|
52
|
+
}
|
|
53
|
+
result = await handleResolveId(ctx, {
|
|
54
|
+
id,
|
|
55
|
+
importer,
|
|
56
|
+
options: opts
|
|
57
|
+
}, {
|
|
58
|
+
skipResolve: options.skipResolve,
|
|
59
|
+
skipNodeModulesBundle: ctx.config.build.skipNodeModulesBundle,
|
|
60
|
+
external: ctx.config.build.external,
|
|
61
|
+
noExternal: ctx.config.build.noExternal
|
|
62
|
+
});
|
|
63
|
+
if (result) {
|
|
64
|
+
return result;
|
|
65
|
+
}
|
|
66
|
+
return ctx.$$internal.callHook("resolveId", {
|
|
67
|
+
sequential: true,
|
|
68
|
+
result: "first",
|
|
69
|
+
order: "post"
|
|
70
|
+
}, id, importer, opts);
|
|
71
|
+
})();
|
|
72
|
+
if (resolved && opts.isEntry && ctx.config.build.polyfill && ctx.config.build.polyfill.length > 0) {
|
|
73
|
+
const entry = ctx.entry.find((entry2) => entry2.file === (isString(resolved) ? resolved : resolved.id));
|
|
74
|
+
if (entry) {
|
|
75
|
+
entry.file = `${replaceExtension(isString(resolved) ? resolved : resolved.id)}-polyfill.ts`;
|
|
76
|
+
entry.output ||= entry.output?.replace(findFileName(entry.output, {
|
|
77
|
+
withExtension: true
|
|
78
|
+
}), entry.file);
|
|
79
|
+
await ctx.emitEntry(`
|
|
80
|
+
${ctx.config.build.polyfill.map((p) => `import "${p}";`).join("\n")}
|
|
81
|
+
|
|
82
|
+
export * from "${isString(resolved) ? resolved : resolved.id}";
|
|
83
|
+
`, entry.file, {
|
|
84
|
+
mode: "virtual"
|
|
85
|
+
});
|
|
86
|
+
return entry.file;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
return resolved;
|
|
90
|
+
}
|
|
91
|
+
__name(resolveId, "resolveId");
|
|
92
|
+
async function load(id) {
|
|
93
|
+
let result = await ctx.$$internal.callHook("load", {
|
|
94
|
+
sequential: true,
|
|
95
|
+
result: "first",
|
|
96
|
+
order: "pre"
|
|
97
|
+
}, id);
|
|
98
|
+
if (result) {
|
|
99
|
+
return result;
|
|
100
|
+
}
|
|
101
|
+
result = await ctx.$$internal.callHook("load", {
|
|
102
|
+
sequential: true,
|
|
103
|
+
result: "first",
|
|
104
|
+
order: "normal"
|
|
105
|
+
}, id);
|
|
106
|
+
if (result) {
|
|
107
|
+
return result;
|
|
108
|
+
}
|
|
109
|
+
if (id) {
|
|
110
|
+
const resolvedPath = ctx.fs.resolve(id);
|
|
111
|
+
if (resolvedPath) {
|
|
112
|
+
return ctx.fs.readFile(resolvedPath);
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
return ctx.$$internal.callHook("load", {
|
|
116
|
+
sequential: true,
|
|
117
|
+
result: "first",
|
|
118
|
+
order: "post"
|
|
119
|
+
}, id);
|
|
120
|
+
}
|
|
121
|
+
__name(load, "load");
|
|
122
|
+
async function transform(code, id) {
|
|
123
|
+
let transformed = code;
|
|
124
|
+
for (const handler of ctx.$$internal.environment.selectHooks("transform")) {
|
|
125
|
+
const result = await handler.apply(combineContexts(ctx, this), [
|
|
126
|
+
getString(transformed),
|
|
127
|
+
id
|
|
128
|
+
]);
|
|
129
|
+
if (result) {
|
|
130
|
+
transformed = result;
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
return transformed;
|
|
134
|
+
}
|
|
135
|
+
__name(transform, "transform");
|
|
136
|
+
async function buildEnd() {
|
|
137
|
+
log(LogLevelLabel.DEBUG, "Powerlines build plugin finishing...");
|
|
138
|
+
return ctx.$$internal.callHook("buildEnd", {
|
|
139
|
+
sequential: true
|
|
140
|
+
});
|
|
141
|
+
}
|
|
142
|
+
__name(buildEnd, "buildEnd");
|
|
143
|
+
async function writeBundle() {
|
|
144
|
+
log(LogLevelLabel.DEBUG, "Finalizing Powerlines project output...");
|
|
145
|
+
return ctx.$$internal.callHook("writeBundle", {
|
|
146
|
+
sequential: true
|
|
147
|
+
});
|
|
148
|
+
}
|
|
149
|
+
__name(writeBundle, "writeBundle");
|
|
150
|
+
return {
|
|
151
|
+
name: "powerlines",
|
|
152
|
+
api: ctx.$$internal.api,
|
|
153
|
+
resolveId: {
|
|
154
|
+
filter: {
|
|
155
|
+
id: {
|
|
156
|
+
include: [
|
|
157
|
+
/.*/
|
|
158
|
+
]
|
|
159
|
+
}
|
|
160
|
+
},
|
|
161
|
+
handler: resolveId
|
|
162
|
+
},
|
|
163
|
+
load: {
|
|
164
|
+
filter: {
|
|
165
|
+
id: {
|
|
166
|
+
include: [
|
|
167
|
+
/.*/
|
|
168
|
+
]
|
|
169
|
+
}
|
|
170
|
+
},
|
|
171
|
+
handler: load
|
|
172
|
+
},
|
|
173
|
+
transform,
|
|
174
|
+
buildStart,
|
|
175
|
+
buildEnd,
|
|
176
|
+
writeBundle,
|
|
177
|
+
vite: {
|
|
178
|
+
sharedDuringBuild: true
|
|
179
|
+
}
|
|
180
|
+
};
|
|
181
|
+
} catch (error) {
|
|
182
|
+
log(LogLevelLabel.FATAL, error?.message);
|
|
183
|
+
throw error;
|
|
184
|
+
}
|
|
185
|
+
};
|
|
186
|
+
}
|
|
187
|
+
__name(createUnplugin, "createUnplugin");
|
|
188
|
+
|
|
189
|
+
export { createUnplugin };
|
package/dist/vite.cjs
CHANGED
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var chunkITL6JGKX_cjs = require('./chunk-ITL6JGKX.cjs');
|
|
6
6
|
require('./chunk-5IBA5HC2.cjs');
|
|
7
|
-
require('./chunk-
|
|
8
|
-
require('./chunk-
|
|
7
|
+
require('./chunk-FJWXCUGQ.cjs');
|
|
8
|
+
require('./chunk-6ZKM7WOB.cjs');
|
|
9
9
|
require('./chunk-ETKZMGLN.cjs');
|
|
10
10
|
require('./chunk-PAMSESZV.cjs');
|
|
11
11
|
require('./chunk-AYKZK666.cjs');
|
|
@@ -15,13 +15,13 @@ require('./chunk-USNT2KNT.cjs');
|
|
|
15
15
|
|
|
16
16
|
Object.defineProperty(exports, "default", {
|
|
17
17
|
enumerable: true,
|
|
18
|
-
get: function () { return
|
|
18
|
+
get: function () { return chunkITL6JGKX_cjs.vite_default; }
|
|
19
19
|
});
|
|
20
20
|
Object.defineProperty(exports, "module.exports", {
|
|
21
21
|
enumerable: true,
|
|
22
|
-
get: function () { return
|
|
22
|
+
get: function () { return chunkITL6JGKX_cjs.vite; }
|
|
23
23
|
});
|
|
24
24
|
Object.defineProperty(exports, "vite", {
|
|
25
25
|
enumerable: true,
|
|
26
|
-
get: function () { return
|
|
26
|
+
get: function () { return chunkITL6JGKX_cjs.vite; }
|
|
27
27
|
});
|
package/dist/vite.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import { X as ViteUserConfig } from './resolved-
|
|
1
|
+
import * as _vite from 'vite';
|
|
2
|
+
import { X as ViteUserConfig } from './resolved-DGrpILrS.cjs';
|
|
3
3
|
import '@stryke/types/base';
|
|
4
4
|
import '@stryke/types/configuration';
|
|
5
5
|
import '@stryke/types/file';
|
|
@@ -42,13 +42,14 @@ import 'typescript';
|
|
|
42
42
|
* @example
|
|
43
43
|
* ```ts
|
|
44
44
|
* // vite.config.ts
|
|
45
|
-
* import powerlines from "powerlines/vite"
|
|
45
|
+
* import powerlines from "powerlines/vite";
|
|
46
46
|
*
|
|
47
47
|
* export default defineConfig({
|
|
48
|
-
* plugins: [powerlines()],
|
|
49
|
-
* })
|
|
48
|
+
* plugins: [powerlines({ name: "example-app", ... })],
|
|
49
|
+
* });
|
|
50
|
+
*
|
|
50
51
|
* ```
|
|
51
52
|
*/
|
|
52
|
-
declare const vite: (options: Partial<ViteUserConfig>) =>
|
|
53
|
+
declare const vite: (options: Partial<ViteUserConfig>) => _vite.Plugin<any> | _vite.Plugin<any>[];
|
|
53
54
|
|
|
54
55
|
export { vite as "module.exports", vite as default, vite };
|
package/dist/vite.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import { X as ViteUserConfig } from './resolved-
|
|
1
|
+
import * as _vite from 'vite';
|
|
2
|
+
import { X as ViteUserConfig } from './resolved-B3BSdXCt.js';
|
|
3
3
|
import '@stryke/types/base';
|
|
4
4
|
import '@stryke/types/configuration';
|
|
5
5
|
import '@stryke/types/file';
|
|
@@ -42,13 +42,14 @@ import 'typescript';
|
|
|
42
42
|
* @example
|
|
43
43
|
* ```ts
|
|
44
44
|
* // vite.config.ts
|
|
45
|
-
* import powerlines from "powerlines/vite"
|
|
45
|
+
* import powerlines from "powerlines/vite";
|
|
46
46
|
*
|
|
47
47
|
* export default defineConfig({
|
|
48
|
-
* plugins: [powerlines()],
|
|
49
|
-
* })
|
|
48
|
+
* plugins: [powerlines({ name: "example-app", ... })],
|
|
49
|
+
* });
|
|
50
|
+
*
|
|
50
51
|
* ```
|
|
51
52
|
*/
|
|
52
|
-
declare const vite: (options: Partial<ViteUserConfig>) =>
|
|
53
|
+
declare const vite: (options: Partial<ViteUserConfig>) => _vite.Plugin<any> | _vite.Plugin<any>[];
|
|
53
54
|
|
|
54
55
|
export { vite as "module.exports", vite as default, vite };
|
package/dist/vite.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { vite_default as default, vite as "module.exports", vite } from './chunk-
|
|
1
|
+
export { vite_default as default, vite as "module.exports", vite } from './chunk-UYJXRMS3.js';
|
|
2
2
|
import './chunk-VBR53KGY.js';
|
|
3
|
-
import './chunk-
|
|
4
|
-
import './chunk-
|
|
3
|
+
import './chunk-RKMUBSYG.js';
|
|
4
|
+
import './chunk-FDEGM4CR.js';
|
|
5
5
|
import './chunk-JQCWV4DT.js';
|
|
6
6
|
import './chunk-JKBJF3UI.js';
|
|
7
7
|
import './chunk-VT7NVLLU.js';
|
package/dist/webpack.cjs
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var
|
|
6
|
-
require('./chunk-
|
|
7
|
-
require('./chunk-
|
|
5
|
+
var chunk2QLM4MYP_cjs = require('./chunk-2QLM4MYP.cjs');
|
|
6
|
+
require('./chunk-FJWXCUGQ.cjs');
|
|
7
|
+
require('./chunk-6ZKM7WOB.cjs');
|
|
8
8
|
require('./chunk-ETKZMGLN.cjs');
|
|
9
9
|
require('./chunk-PAMSESZV.cjs');
|
|
10
10
|
require('./chunk-AYKZK666.cjs');
|
|
@@ -14,13 +14,13 @@ require('./chunk-USNT2KNT.cjs');
|
|
|
14
14
|
|
|
15
15
|
Object.defineProperty(exports, "default", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunk2QLM4MYP_cjs.webpack_default; }
|
|
18
18
|
});
|
|
19
19
|
Object.defineProperty(exports, "module.exports", {
|
|
20
20
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunk2QLM4MYP_cjs.webpack; }
|
|
22
22
|
});
|
|
23
23
|
Object.defineProperty(exports, "webpack", {
|
|
24
24
|
enumerable: true,
|
|
25
|
-
get: function () { return
|
|
25
|
+
get: function () { return chunk2QLM4MYP_cjs.webpack; }
|
|
26
26
|
});
|
package/dist/webpack.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import { M as WebpackUserConfig } from './resolved-
|
|
1
|
+
import * as _webpack from 'webpack';
|
|
2
|
+
import { M as WebpackUserConfig } from './resolved-DGrpILrS.cjs';
|
|
3
3
|
import '@stryke/types/base';
|
|
4
4
|
import '@stryke/types/configuration';
|
|
5
5
|
import '@stryke/types/file';
|
|
@@ -42,13 +42,13 @@ import 'typescript';
|
|
|
42
42
|
* @example
|
|
43
43
|
* ```js
|
|
44
44
|
* // webpack.config.js
|
|
45
|
-
* import powerlines from
|
|
45
|
+
* import powerlines from "powerlines/webpack";
|
|
46
46
|
*
|
|
47
47
|
* export default {
|
|
48
|
-
* plugins: [powerlines()],
|
|
48
|
+
* plugins: [powerlines({ name: "example-app", ... })],
|
|
49
49
|
* }
|
|
50
50
|
* ```
|
|
51
51
|
*/
|
|
52
|
-
declare const webpack: (options: Partial<WebpackUserConfig>) =>
|
|
52
|
+
declare const webpack: (options: Partial<WebpackUserConfig>) => _webpack.WebpackPluginInstance;
|
|
53
53
|
|
|
54
54
|
export { webpack as "module.exports", webpack as default, webpack };
|
package/dist/webpack.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import { M as WebpackUserConfig } from './resolved-
|
|
1
|
+
import * as _webpack from 'webpack';
|
|
2
|
+
import { M as WebpackUserConfig } from './resolved-B3BSdXCt.js';
|
|
3
3
|
import '@stryke/types/base';
|
|
4
4
|
import '@stryke/types/configuration';
|
|
5
5
|
import '@stryke/types/file';
|
|
@@ -42,13 +42,13 @@ import 'typescript';
|
|
|
42
42
|
* @example
|
|
43
43
|
* ```js
|
|
44
44
|
* // webpack.config.js
|
|
45
|
-
* import powerlines from
|
|
45
|
+
* import powerlines from "powerlines/webpack";
|
|
46
46
|
*
|
|
47
47
|
* export default {
|
|
48
|
-
* plugins: [powerlines()],
|
|
48
|
+
* plugins: [powerlines({ name: "example-app", ... })],
|
|
49
49
|
* }
|
|
50
50
|
* ```
|
|
51
51
|
*/
|
|
52
|
-
declare const webpack: (options: Partial<WebpackUserConfig>) =>
|
|
52
|
+
declare const webpack: (options: Partial<WebpackUserConfig>) => _webpack.WebpackPluginInstance;
|
|
53
53
|
|
|
54
54
|
export { webpack as "module.exports", webpack as default, webpack };
|
package/dist/webpack.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { webpack_default as default, webpack as "module.exports", webpack } from './chunk-
|
|
2
|
-
import './chunk-
|
|
3
|
-
import './chunk-
|
|
1
|
+
export { webpack_default as default, webpack as "module.exports", webpack } from './chunk-S47BU5QR.js';
|
|
2
|
+
import './chunk-RKMUBSYG.js';
|
|
3
|
+
import './chunk-FDEGM4CR.js';
|
|
4
4
|
import './chunk-JQCWV4DT.js';
|
|
5
5
|
import './chunk-JKBJF3UI.js';
|
|
6
6
|
import './chunk-VT7NVLLU.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "powerlines",
|
|
3
|
-
"version": "0.23.
|
|
3
|
+
"version": "0.23.9",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "The \"any framework\" framework that simplifies modern dev tool usage, generates virtual (or actual) code modules, and improves DX across the board.",
|
|
6
6
|
"repository": {
|
|
@@ -507,12 +507,12 @@
|
|
|
507
507
|
"@rollup/plugin-replace": "^6.0.3",
|
|
508
508
|
"@rollup/plugin-babel": "^6.1.0",
|
|
509
509
|
"@rollup/plugin-node-resolve": "^16.0.3",
|
|
510
|
-
"@storm-software/build-tools": "^0.158.
|
|
511
|
-
"@storm-software/config": "^1.134.
|
|
512
|
-
"@storm-software/config-tools": "^1.188.
|
|
513
|
-
"@storm-software/esbuild": "^0.53.
|
|
514
|
-
"@storm-software/tsup": "^0.2.
|
|
515
|
-
"@storm-software/unbuild": "^0.57.
|
|
510
|
+
"@storm-software/build-tools": "^0.158.48",
|
|
511
|
+
"@storm-software/config": "^1.134.48",
|
|
512
|
+
"@storm-software/config-tools": "^1.188.48",
|
|
513
|
+
"@storm-software/esbuild": "^0.53.48",
|
|
514
|
+
"@storm-software/tsup": "^0.2.46",
|
|
515
|
+
"@storm-software/unbuild": "^0.57.48",
|
|
516
516
|
"@stryke/capnp": "^0.12.21",
|
|
517
517
|
"@stryke/convert": "^0.6.2",
|
|
518
518
|
"@stryke/env": "^0.20.14",
|
|
@@ -545,12 +545,12 @@
|
|
|
545
545
|
"memfs": "^4.51.0",
|
|
546
546
|
"unionfs": "^4.6.0",
|
|
547
547
|
"unplugin": "^2.3.10",
|
|
548
|
-
"unstorage": "^1.17.
|
|
548
|
+
"unstorage": "^1.17.3",
|
|
549
549
|
"vite": "^7.2.4"
|
|
550
550
|
},
|
|
551
551
|
"devDependencies": {
|
|
552
552
|
"@microsoft/tsdoc": "^0.15.1",
|
|
553
|
-
"@storm-software/testing-tools": "^1.119.
|
|
553
|
+
"@storm-software/testing-tools": "^1.119.48",
|
|
554
554
|
"@stryke/types": "^0.10.2",
|
|
555
555
|
"@types/babel__core": "^7.20.5",
|
|
556
556
|
"@types/babel__helper-module-imports": "^7.18.3",
|
|
@@ -566,5 +566,5 @@
|
|
|
566
566
|
"typescript": "^5.9.3"
|
|
567
567
|
},
|
|
568
568
|
"publishConfig": { "access": "public" },
|
|
569
|
-
"gitHead": "
|
|
569
|
+
"gitHead": "d217b583335e4615b4e28fba7325f51fbd78a3f6"
|
|
570
570
|
}
|