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/babel-types.d.ts
DELETED
|
@@ -1,292 +0,0 @@
|
|
|
1
|
-
/* -------------------------------------------------------------------
|
|
2
|
-
|
|
3
|
-
⚡ Storm Software - Powerlines
|
|
4
|
-
|
|
5
|
-
This code was released as part of the Powerlines project. Powerlines
|
|
6
|
-
is maintained by Storm Software under the Apache-2.0 license, and is
|
|
7
|
-
free for commercial and private use. For more information, please visit
|
|
8
|
-
our licensing page at https://stormsoftware.com/licenses/projects/powerlines.
|
|
9
|
-
|
|
10
|
-
Website: https://stormsoftware.com
|
|
11
|
-
Repository: https://github.com/storm-software/powerlines
|
|
12
|
-
Documentation: https://docs.stormsoftware.com/projects/powerlines
|
|
13
|
-
Contact: https://stormsoftware.com/contact
|
|
14
|
-
|
|
15
|
-
SPDX-License-Identifier: Apache-2.0
|
|
16
|
-
|
|
17
|
-
------------------------------------------------------------------- */
|
|
18
|
-
|
|
19
|
-
import type { ConfigAPI, NodePath, types as t } from "@babel/core";
|
|
20
|
-
import type { HubInterface } from "@babel/traverse";
|
|
21
|
-
|
|
22
|
-
declare module "@babel/helper-plugin-utils" {
|
|
23
|
-
const knownAssumptions: readonly [
|
|
24
|
-
"arrayLikeIsIterable",
|
|
25
|
-
"constantReexports",
|
|
26
|
-
"constantSuper",
|
|
27
|
-
"enumerableModuleMeta",
|
|
28
|
-
"ignoreFunctionLength",
|
|
29
|
-
"ignoreToPrimitiveHint",
|
|
30
|
-
"iterableIsArray",
|
|
31
|
-
"mutableTemplateObject",
|
|
32
|
-
"noClassCalls",
|
|
33
|
-
"noDocumentAll",
|
|
34
|
-
"noIncompleteNsImportDetection",
|
|
35
|
-
"noNewArrows",
|
|
36
|
-
"noUninitializedPrivateFieldAccess",
|
|
37
|
-
"objectRestNoSymbols",
|
|
38
|
-
"privateFieldsAsSymbols",
|
|
39
|
-
"privateFieldsAsProperties",
|
|
40
|
-
"pureGetters",
|
|
41
|
-
"setClassMethods",
|
|
42
|
-
"setComputedProperties",
|
|
43
|
-
"setPublicClassFields",
|
|
44
|
-
"setSpreadProperties",
|
|
45
|
-
"skipForOfIteratorClosing",
|
|
46
|
-
"superIsCallableConstructor"
|
|
47
|
-
];
|
|
48
|
-
|
|
49
|
-
export type AssumptionName = (typeof knownAssumptions)[number];
|
|
50
|
-
|
|
51
|
-
type AssumptionFunction = (name: AssumptionName) => boolean | undefined;
|
|
52
|
-
|
|
53
|
-
export type Target =
|
|
54
|
-
| "node"
|
|
55
|
-
| "deno"
|
|
56
|
-
| "chrome"
|
|
57
|
-
| "opera"
|
|
58
|
-
| "edge"
|
|
59
|
-
| "firefox"
|
|
60
|
-
| "safari"
|
|
61
|
-
| "ie"
|
|
62
|
-
| "ios"
|
|
63
|
-
| "android"
|
|
64
|
-
| "electron"
|
|
65
|
-
| "samsung"
|
|
66
|
-
| "opera_mobile";
|
|
67
|
-
|
|
68
|
-
export type Targets = {
|
|
69
|
-
[target in Target]?: string;
|
|
70
|
-
};
|
|
71
|
-
|
|
72
|
-
type TargetsFunction = () => Targets;
|
|
73
|
-
|
|
74
|
-
export type PresetAPI = {
|
|
75
|
-
targets: TargetsFunction;
|
|
76
|
-
addExternalDependency: (ref: string) => void;
|
|
77
|
-
} & ConfigAPI;
|
|
78
|
-
|
|
79
|
-
export type PluginAPI = {
|
|
80
|
-
assumption: AssumptionFunction;
|
|
81
|
-
} & PresetAPI &
|
|
82
|
-
BabelAPI;
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
declare module "@babel/core" {
|
|
86
|
-
export interface BabelFile
|
|
87
|
-
extends HubInterface,
|
|
88
|
-
Pick<PluginPass, "get" | "set"> {}
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
declare module "@babel/helper-module-transforms" {
|
|
92
|
-
interface LocalExportMetadata {
|
|
93
|
-
/**
|
|
94
|
-
* names of exports
|
|
95
|
-
*/
|
|
96
|
-
names: string[];
|
|
97
|
-
kind: "import" | "hoisted" | "block" | "var";
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
type InteropType =
|
|
101
|
-
/**
|
|
102
|
-
* Babel interop for default-only imports
|
|
103
|
-
*/
|
|
104
|
-
| "default"
|
|
105
|
-
/**
|
|
106
|
-
* Babel interop for namespace or default+named imports
|
|
107
|
-
*/
|
|
108
|
-
| "namespace"
|
|
109
|
-
/**
|
|
110
|
-
* Node.js interop for default-only imports
|
|
111
|
-
*/
|
|
112
|
-
| "node-default"
|
|
113
|
-
/**
|
|
114
|
-
* Node.js interop for namespace or default+named imports
|
|
115
|
-
*/
|
|
116
|
-
| "node-namespace"
|
|
117
|
-
/**
|
|
118
|
-
* No interop, or named-only imports
|
|
119
|
-
*/
|
|
120
|
-
| "none";
|
|
121
|
-
|
|
122
|
-
interface SourceModuleMetadata {
|
|
123
|
-
/**
|
|
124
|
-
* A unique variable name to use for this namespace object.
|
|
125
|
-
* Centralized for simplicity.
|
|
126
|
-
*/
|
|
127
|
-
name: string;
|
|
128
|
-
loc: t.SourceLocation | undefined | null;
|
|
129
|
-
interop: InteropType;
|
|
130
|
-
/**
|
|
131
|
-
* Local binding to reference from this source namespace.
|
|
132
|
-
* Key: Local name, value: Import name
|
|
133
|
-
*/
|
|
134
|
-
imports: Map<string, string>;
|
|
135
|
-
/**
|
|
136
|
-
* Local names that reference namespace object.
|
|
137
|
-
*/
|
|
138
|
-
importsNamespace: Set<string>;
|
|
139
|
-
/**
|
|
140
|
-
* Reexports to create for namespace. Key: Export name, value: Import name
|
|
141
|
-
*/
|
|
142
|
-
reexports: Map<string, string>;
|
|
143
|
-
/**
|
|
144
|
-
* List of names to re-export namespace as.
|
|
145
|
-
*/
|
|
146
|
-
reexportNamespace: Set<string>;
|
|
147
|
-
/**
|
|
148
|
-
* Tracks if the source should be re-exported.
|
|
149
|
-
*/
|
|
150
|
-
reexportAll: null | {
|
|
151
|
-
loc: t.SourceLocation | undefined | null;
|
|
152
|
-
};
|
|
153
|
-
wrap?: unknown;
|
|
154
|
-
referenced: boolean;
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
interface ModuleMetadata {
|
|
158
|
-
exportName: string;
|
|
159
|
-
/**
|
|
160
|
-
* The name of the variable that will reference an object
|
|
161
|
-
* containing export names.
|
|
162
|
-
*/
|
|
163
|
-
exportNameListName: null | string;
|
|
164
|
-
hasExports: boolean;
|
|
165
|
-
/**
|
|
166
|
-
* Lookup from local binding to export information.
|
|
167
|
-
*/
|
|
168
|
-
local: Map<string, LocalExportMetadata>;
|
|
169
|
-
/**
|
|
170
|
-
* Lookup of source file to source file metadata.
|
|
171
|
-
*/
|
|
172
|
-
source: Map<string, SourceModuleMetadata>;
|
|
173
|
-
/**
|
|
174
|
-
* List of names that should only be printed as string literals.
|
|
175
|
-
* i.e. `import { "any unicode" as foo } from "some-module"`
|
|
176
|
-
* `stringSpecifiers` is `Set(1) ["any unicode"]`
|
|
177
|
-
* In most cases `stringSpecifiers` is an empty Set
|
|
178
|
-
*/
|
|
179
|
-
stringSpecifiers: Set<string>;
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
type ImportInterop =
|
|
183
|
-
| "none"
|
|
184
|
-
| "babel"
|
|
185
|
-
| "node"
|
|
186
|
-
| ((source: string, filename?: string) => "none" | "babel" | "node");
|
|
187
|
-
|
|
188
|
-
type Lazy = boolean | string[] | ((source: string) => boolean);
|
|
189
|
-
|
|
190
|
-
interface RootOptions {
|
|
191
|
-
filename?: string | null;
|
|
192
|
-
filenameRelative?: string | null;
|
|
193
|
-
sourceRoot?: string | null;
|
|
194
|
-
}
|
|
195
|
-
|
|
196
|
-
export interface PluginOptions {
|
|
197
|
-
moduleId?: string;
|
|
198
|
-
moduleIds?: boolean;
|
|
199
|
-
getModuleId?: (moduleName: string) => string | null | undefined;
|
|
200
|
-
moduleRoot?: string;
|
|
201
|
-
}
|
|
202
|
-
|
|
203
|
-
export function getModuleName(
|
|
204
|
-
rootOpts: RootOptions,
|
|
205
|
-
pluginOpts: PluginOptions
|
|
206
|
-
): string | null;
|
|
207
|
-
|
|
208
|
-
export interface RewriteModuleStatementsAndPrepareHeaderOptions {
|
|
209
|
-
exportName?: string;
|
|
210
|
-
strict?: boolean;
|
|
211
|
-
allowTopLevelThis?: boolean;
|
|
212
|
-
strictMode?: boolean;
|
|
213
|
-
loose?: boolean;
|
|
214
|
-
importInterop?: ImportInterop;
|
|
215
|
-
noInterop?: boolean;
|
|
216
|
-
lazy?: Lazy;
|
|
217
|
-
getWrapperPayload?: (
|
|
218
|
-
source: string,
|
|
219
|
-
metadata: SourceModuleMetadata,
|
|
220
|
-
importNodes: t.Node[]
|
|
221
|
-
) => unknown;
|
|
222
|
-
wrapReference?: (
|
|
223
|
-
ref: t.Expression,
|
|
224
|
-
payload: unknown
|
|
225
|
-
) => t.Expression | null | undefined;
|
|
226
|
-
esNamespaceOnly?: boolean;
|
|
227
|
-
filename: string | undefined | null;
|
|
228
|
-
constantReexports?: boolean | void;
|
|
229
|
-
enumerableModuleMeta?: boolean | void;
|
|
230
|
-
noIncompleteNsImportDetection?: boolean | void;
|
|
231
|
-
}
|
|
232
|
-
|
|
233
|
-
/**
|
|
234
|
-
* Perform all of the generic ES6 module rewriting needed to handle initial
|
|
235
|
-
* module processing. This function will rewrite the majority of the given
|
|
236
|
-
* program to reference the modules described by the returned metadata,
|
|
237
|
-
* and returns a list of statements for use when initializing the module.
|
|
238
|
-
*/
|
|
239
|
-
export function rewriteModuleStatementsAndPrepareHeader(
|
|
240
|
-
path: NodePath<t.Program>,
|
|
241
|
-
options: RewriteModuleStatementsAndPrepareHeaderOptions
|
|
242
|
-
): {
|
|
243
|
-
meta: ModuleMetadata;
|
|
244
|
-
headers: t.Statement[];
|
|
245
|
-
};
|
|
246
|
-
|
|
247
|
-
/**
|
|
248
|
-
* Check if a given source is an anonymous import, e.g. `import 'foo';`
|
|
249
|
-
*/
|
|
250
|
-
export function isSideEffectImport(source: SourceModuleMetadata): boolean;
|
|
251
|
-
|
|
252
|
-
/**
|
|
253
|
-
* Create the runtime initialization statements for a given requested source.
|
|
254
|
-
* These will initialize all of the runtime import/export logic that
|
|
255
|
-
* can't be handled statically by the statements created by
|
|
256
|
-
* `buildExportInitializationStatements()`.
|
|
257
|
-
*/
|
|
258
|
-
export function buildNamespaceInitStatements(
|
|
259
|
-
metadata: ModuleMetadata,
|
|
260
|
-
sourceMetadata: SourceModuleMetadata,
|
|
261
|
-
constantReexports?: boolean | void,
|
|
262
|
-
wrapReference?: (
|
|
263
|
-
ref: t.Identifier,
|
|
264
|
-
payload: unknown
|
|
265
|
-
) => t.Expression | null | undefined
|
|
266
|
-
): t.Statement[];
|
|
267
|
-
|
|
268
|
-
/**
|
|
269
|
-
* Flag a set of statements as hoisted above all else so that module init
|
|
270
|
-
* statements all run before user code.
|
|
271
|
-
*/
|
|
272
|
-
export function ensureStatementsHoisted(statements: t.Statement[]): void;
|
|
273
|
-
|
|
274
|
-
/**
|
|
275
|
-
* Given an expression for a standard import object, like `require('foo')`,
|
|
276
|
-
* wrap it in a call to the interop helpers based on the type.
|
|
277
|
-
*/
|
|
278
|
-
export function wrapInterop(
|
|
279
|
-
programPath: NodePath<t.Program>,
|
|
280
|
-
expr: t.Expression,
|
|
281
|
-
type: InteropType
|
|
282
|
-
): t.CallExpression;
|
|
283
|
-
|
|
284
|
-
export function buildDynamicImport(
|
|
285
|
-
node: t.CallExpression | t.ImportExpression,
|
|
286
|
-
deferToThen: boolean,
|
|
287
|
-
wrapWithPromise: boolean,
|
|
288
|
-
builder: (specifier: t.Expression) => t.Expression
|
|
289
|
-
): t.Expression;
|
|
290
|
-
}
|
|
291
|
-
|
|
292
|
-
export {};
|
package/dist/chunk-33BDG6M5.js
DELETED
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { esbuild_default } from './chunk-W36NC3B7.js';
|
|
2
|
-
import { __name } from './chunk-SHUYVCID.js';
|
|
3
|
-
import { omit } from '@stryke/helpers/omit';
|
|
4
|
-
|
|
5
|
-
function tsup(options = {}) {
|
|
6
|
-
return {
|
|
7
|
-
...options,
|
|
8
|
-
esbuildPlugins: [
|
|
9
|
-
esbuild_default({
|
|
10
|
-
output: {
|
|
11
|
-
outputPath: options.outDir,
|
|
12
|
-
format: options.format
|
|
13
|
-
},
|
|
14
|
-
build: {
|
|
15
|
-
...omit(options, [
|
|
16
|
-
"plugins",
|
|
17
|
-
"banner",
|
|
18
|
-
"footer",
|
|
19
|
-
"outExtension",
|
|
20
|
-
"outDir",
|
|
21
|
-
"format",
|
|
22
|
-
"minify",
|
|
23
|
-
"pure",
|
|
24
|
-
"inject"
|
|
25
|
-
]),
|
|
26
|
-
minify: Boolean(options.minify),
|
|
27
|
-
pure: Array.isArray(options.pure) ? options.pure : typeof options.pure === "string" ? [
|
|
28
|
-
options.pure
|
|
29
|
-
] : []
|
|
30
|
-
}
|
|
31
|
-
})
|
|
32
|
-
]
|
|
33
|
-
};
|
|
34
|
-
}
|
|
35
|
-
__name(tsup, "tsup");
|
|
36
|
-
var tsup_default = tsup;
|
|
37
|
-
|
|
38
|
-
export { tsup, tsup_default };
|
package/dist/chunk-3HOOIAF4.js
DELETED
package/dist/chunk-AK5B45AH.js
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { vite_default } from './chunk-XWBVMNBI.js';
|
|
2
|
-
import { __name } from './chunk-SHUYVCID.js';
|
|
3
|
-
|
|
4
|
-
// src/astro.ts
|
|
5
|
-
var astro = /* @__PURE__ */ __name((config) => ({
|
|
6
|
-
vite: {
|
|
7
|
-
plugins: [
|
|
8
|
-
vite_default(config)
|
|
9
|
-
]
|
|
10
|
-
}
|
|
11
|
-
}), "astro");
|
|
12
|
-
var astro_default = astro;
|
|
13
|
-
|
|
14
|
-
export { astro, astro_default };
|
package/dist/chunk-GHHMURR4.js
DELETED
package/dist/chunk-GXJ5L37C.cjs
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var chunkI3EUY74Q_cjs = require('./chunk-I3EUY74Q.cjs');
|
|
4
|
-
var unplugin = require('unplugin');
|
|
5
|
-
|
|
6
|
-
var unloader = unplugin.createUnloaderPlugin(chunkI3EUY74Q_cjs.createUnpluginFactory("unloader"));
|
|
7
|
-
var unloader_default = unloader;
|
|
8
|
-
|
|
9
|
-
exports.unloader = unloader;
|
|
10
|
-
exports.unloader_default = unloader_default;
|
package/dist/chunk-IVABRCNA.js
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { rolldown_default } from './chunk-3HOOIAF4.js';
|
|
2
|
-
import { rollup_default } from './chunk-XDNNFAQR.js';
|
|
3
|
-
import { rspack_default } from './chunk-ZOMJH52N.js';
|
|
4
|
-
import { tsup_default } from './chunk-33BDG6M5.js';
|
|
5
|
-
import { unloader_default } from './chunk-GHHMURR4.js';
|
|
6
|
-
import { astro_default } from './chunk-AK5B45AH.js';
|
|
7
|
-
import { esbuild_default } from './chunk-W36NC3B7.js';
|
|
8
|
-
import { next_default } from './chunk-TSKJTJ2P.js';
|
|
9
|
-
import { nuxt_default } from './chunk-M7N6RX2H.js';
|
|
10
|
-
import { vite_default } from './chunk-XWBVMNBI.js';
|
|
11
|
-
import { webpack_default } from './chunk-5CCEQUAZ.js';
|
|
12
|
-
|
|
13
|
-
// src/unplugin.ts
|
|
14
|
-
var plugins = {
|
|
15
|
-
astro: astro_default,
|
|
16
|
-
esbuild: esbuild_default,
|
|
17
|
-
next: next_default,
|
|
18
|
-
nuxt: nuxt_default,
|
|
19
|
-
rolldown: rolldown_default,
|
|
20
|
-
rollup: rollup_default,
|
|
21
|
-
rspack: rspack_default,
|
|
22
|
-
tsup: tsup_default,
|
|
23
|
-
unloader: unloader_default,
|
|
24
|
-
vite: vite_default,
|
|
25
|
-
webpack: webpack_default
|
|
26
|
-
};
|
|
27
|
-
var unplugin_default = plugins;
|
|
28
|
-
|
|
29
|
-
export { plugins, unplugin_default };
|
package/dist/chunk-JJXDDTSL.cjs
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var chunkVRFJDHDN_cjs = require('./chunk-VRFJDHDN.cjs');
|
|
4
|
-
var chunkQ3ZFML4W_cjs = require('./chunk-Q3ZFML4W.cjs');
|
|
5
|
-
var kit = require('@nuxt/kit');
|
|
6
|
-
require('@nuxt/schema');
|
|
7
|
-
|
|
8
|
-
var nuxt = kit.defineNuxtModule({
|
|
9
|
-
meta: {
|
|
10
|
-
name: "powerlines",
|
|
11
|
-
configKey: "storm"
|
|
12
|
-
},
|
|
13
|
-
defaults: {},
|
|
14
|
-
setup(options, _nuxt) {
|
|
15
|
-
kit.addVitePlugin(() => chunkVRFJDHDN_cjs.vite_default(options));
|
|
16
|
-
kit.addWebpackPlugin(() => chunkQ3ZFML4W_cjs.webpack_default(options));
|
|
17
|
-
}
|
|
18
|
-
});
|
|
19
|
-
var nuxt_default = nuxt;
|
|
20
|
-
|
|
21
|
-
exports.nuxt = nuxt;
|
|
22
|
-
exports.nuxt_default = nuxt_default;
|
package/dist/chunk-K5TOHSUD.cjs
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var chunkVRFJDHDN_cjs = require('./chunk-VRFJDHDN.cjs');
|
|
4
|
-
var chunkUSNT2KNT_cjs = require('./chunk-USNT2KNT.cjs');
|
|
5
|
-
|
|
6
|
-
// src/astro.ts
|
|
7
|
-
var astro = /* @__PURE__ */ chunkUSNT2KNT_cjs.__name((config) => ({
|
|
8
|
-
vite: {
|
|
9
|
-
plugins: [
|
|
10
|
-
chunkVRFJDHDN_cjs.vite_default(config)
|
|
11
|
-
]
|
|
12
|
-
}
|
|
13
|
-
}), "astro");
|
|
14
|
-
var astro_default = astro;
|
|
15
|
-
|
|
16
|
-
exports.astro = astro;
|
|
17
|
-
exports.astro_default = astro_default;
|
package/dist/chunk-M7N6RX2H.js
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { vite_default } from './chunk-XWBVMNBI.js';
|
|
2
|
-
import { webpack_default } from './chunk-5CCEQUAZ.js';
|
|
3
|
-
import { defineNuxtModule, addVitePlugin, addWebpackPlugin } from '@nuxt/kit';
|
|
4
|
-
import '@nuxt/schema';
|
|
5
|
-
|
|
6
|
-
var nuxt = defineNuxtModule({
|
|
7
|
-
meta: {
|
|
8
|
-
name: "powerlines",
|
|
9
|
-
configKey: "storm"
|
|
10
|
-
},
|
|
11
|
-
defaults: {},
|
|
12
|
-
setup(options, _nuxt) {
|
|
13
|
-
addVitePlugin(() => vite_default(options));
|
|
14
|
-
addWebpackPlugin(() => webpack_default(options));
|
|
15
|
-
}
|
|
16
|
-
});
|
|
17
|
-
var nuxt_default = nuxt;
|
|
18
|
-
|
|
19
|
-
export { nuxt, nuxt_default };
|
package/dist/chunk-MAOXZVDE.cjs
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var chunkQ3ZFML4W_cjs = require('./chunk-Q3ZFML4W.cjs');
|
|
4
|
-
var chunkUSNT2KNT_cjs = require('./chunk-USNT2KNT.cjs');
|
|
5
|
-
|
|
6
|
-
// src/next.ts
|
|
7
|
-
function next(config = {}) {
|
|
8
|
-
return {
|
|
9
|
-
...config,
|
|
10
|
-
webpack(webpackConfig, context) {
|
|
11
|
-
const result = config.webpack?.(webpackConfig, context) || webpackConfig;
|
|
12
|
-
result.plugins ??= [];
|
|
13
|
-
result.plugins.push(chunkQ3ZFML4W_cjs.webpack_default(webpackConfig));
|
|
14
|
-
return result;
|
|
15
|
-
}
|
|
16
|
-
};
|
|
17
|
-
}
|
|
18
|
-
chunkUSNT2KNT_cjs.__name(next, "next");
|
|
19
|
-
var next_default = next;
|
|
20
|
-
|
|
21
|
-
exports.next = next;
|
|
22
|
-
exports.next_default = next_default;
|
package/dist/chunk-NWZXH2HK.cjs
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var chunkI3EUY74Q_cjs = require('./chunk-I3EUY74Q.cjs');
|
|
4
|
-
var unplugin = require('unplugin');
|
|
5
|
-
|
|
6
|
-
var rspack = unplugin.createRspackPlugin(chunkI3EUY74Q_cjs.createUnpluginFactory("rspack"));
|
|
7
|
-
var rspack_default = rspack;
|
|
8
|
-
|
|
9
|
-
exports.rspack = rspack;
|
|
10
|
-
exports.rspack_default = rspack_default;
|
package/dist/chunk-PFECSHR6.cjs
DELETED
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var chunk4OAW547A_cjs = require('./chunk-4OAW547A.cjs');
|
|
4
|
-
var chunkUSNT2KNT_cjs = require('./chunk-USNT2KNT.cjs');
|
|
5
|
-
var omit = require('@stryke/helpers/omit');
|
|
6
|
-
|
|
7
|
-
function tsup(options = {}) {
|
|
8
|
-
return {
|
|
9
|
-
...options,
|
|
10
|
-
esbuildPlugins: [
|
|
11
|
-
chunk4OAW547A_cjs.esbuild_default({
|
|
12
|
-
output: {
|
|
13
|
-
outputPath: options.outDir,
|
|
14
|
-
format: options.format
|
|
15
|
-
},
|
|
16
|
-
build: {
|
|
17
|
-
...omit.omit(options, [
|
|
18
|
-
"plugins",
|
|
19
|
-
"banner",
|
|
20
|
-
"footer",
|
|
21
|
-
"outExtension",
|
|
22
|
-
"outDir",
|
|
23
|
-
"format",
|
|
24
|
-
"minify",
|
|
25
|
-
"pure",
|
|
26
|
-
"inject"
|
|
27
|
-
]),
|
|
28
|
-
minify: Boolean(options.minify),
|
|
29
|
-
pure: Array.isArray(options.pure) ? options.pure : typeof options.pure === "string" ? [
|
|
30
|
-
options.pure
|
|
31
|
-
] : []
|
|
32
|
-
}
|
|
33
|
-
})
|
|
34
|
-
]
|
|
35
|
-
};
|
|
36
|
-
}
|
|
37
|
-
chunkUSNT2KNT_cjs.__name(tsup, "tsup");
|
|
38
|
-
var tsup_default = tsup;
|
|
39
|
-
|
|
40
|
-
exports.tsup = tsup;
|
|
41
|
-
exports.tsup_default = tsup_default;
|
package/dist/chunk-RM37JA3L.cjs
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var chunkYBOJFFO2_cjs = require('./chunk-YBOJFFO2.cjs');
|
|
4
|
-
var chunkRVO5GC2H_cjs = require('./chunk-RVO5GC2H.cjs');
|
|
5
|
-
var chunkNWZXH2HK_cjs = require('./chunk-NWZXH2HK.cjs');
|
|
6
|
-
var chunkPFECSHR6_cjs = require('./chunk-PFECSHR6.cjs');
|
|
7
|
-
var chunkGXJ5L37C_cjs = require('./chunk-GXJ5L37C.cjs');
|
|
8
|
-
var chunkK5TOHSUD_cjs = require('./chunk-K5TOHSUD.cjs');
|
|
9
|
-
var chunk4OAW547A_cjs = require('./chunk-4OAW547A.cjs');
|
|
10
|
-
var chunkMAOXZVDE_cjs = require('./chunk-MAOXZVDE.cjs');
|
|
11
|
-
var chunkJJXDDTSL_cjs = require('./chunk-JJXDDTSL.cjs');
|
|
12
|
-
var chunkVRFJDHDN_cjs = require('./chunk-VRFJDHDN.cjs');
|
|
13
|
-
var chunkQ3ZFML4W_cjs = require('./chunk-Q3ZFML4W.cjs');
|
|
14
|
-
|
|
15
|
-
// src/unplugin.ts
|
|
16
|
-
var plugins = {
|
|
17
|
-
astro: chunkK5TOHSUD_cjs.astro_default,
|
|
18
|
-
esbuild: chunk4OAW547A_cjs.esbuild_default,
|
|
19
|
-
next: chunkMAOXZVDE_cjs.next_default,
|
|
20
|
-
nuxt: chunkJJXDDTSL_cjs.nuxt_default,
|
|
21
|
-
rolldown: chunkYBOJFFO2_cjs.rolldown_default,
|
|
22
|
-
rollup: chunkRVO5GC2H_cjs.rollup_default,
|
|
23
|
-
rspack: chunkNWZXH2HK_cjs.rspack_default,
|
|
24
|
-
tsup: chunkPFECSHR6_cjs.tsup_default,
|
|
25
|
-
unloader: chunkGXJ5L37C_cjs.unloader_default,
|
|
26
|
-
vite: chunkVRFJDHDN_cjs.vite_default,
|
|
27
|
-
webpack: chunkQ3ZFML4W_cjs.webpack_default
|
|
28
|
-
};
|
|
29
|
-
var unplugin_default = plugins;
|
|
30
|
-
|
|
31
|
-
exports.plugins = plugins;
|
|
32
|
-
exports.unplugin_default = unplugin_default;
|
package/dist/chunk-RVO5GC2H.cjs
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var chunkI3EUY74Q_cjs = require('./chunk-I3EUY74Q.cjs');
|
|
4
|
-
var unplugin = require('unplugin');
|
|
5
|
-
|
|
6
|
-
var rollup = unplugin.createRollupPlugin(chunkI3EUY74Q_cjs.createUnpluginFactory("rollup"));
|
|
7
|
-
var rollup_default = rollup;
|
|
8
|
-
|
|
9
|
-
exports.rollup = rollup;
|
|
10
|
-
exports.rollup_default = rollup_default;
|
package/dist/chunk-TSKJTJ2P.js
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { webpack_default } from './chunk-5CCEQUAZ.js';
|
|
2
|
-
import { __name } from './chunk-SHUYVCID.js';
|
|
3
|
-
|
|
4
|
-
// src/next.ts
|
|
5
|
-
function next(config = {}) {
|
|
6
|
-
return {
|
|
7
|
-
...config,
|
|
8
|
-
webpack(webpackConfig, context) {
|
|
9
|
-
const result = config.webpack?.(webpackConfig, context) || webpackConfig;
|
|
10
|
-
result.plugins ??= [];
|
|
11
|
-
result.plugins.push(webpack_default(webpackConfig));
|
|
12
|
-
return result;
|
|
13
|
-
}
|
|
14
|
-
};
|
|
15
|
-
}
|
|
16
|
-
__name(next, "next");
|
|
17
|
-
var next_default = next;
|
|
18
|
-
|
|
19
|
-
export { next, next_default };
|
package/dist/chunk-XDNNFAQR.js
DELETED
package/dist/chunk-YBOJFFO2.cjs
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var chunkI3EUY74Q_cjs = require('./chunk-I3EUY74Q.cjs');
|
|
4
|
-
var unplugin = require('unplugin');
|
|
5
|
-
|
|
6
|
-
var rolldown = unplugin.createRolldownPlugin(chunkI3EUY74Q_cjs.createUnpluginFactory("rolldown"));
|
|
7
|
-
var rolldown_default = rolldown;
|
|
8
|
-
|
|
9
|
-
exports.rolldown = rolldown;
|
|
10
|
-
exports.rolldown_default = rolldown_default;
|
package/dist/chunk-ZOMJH52N.js
DELETED