@rolldown/browser 1.0.0-beta.9-commit.0ec9e7d → 1.0.0-rc.10
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/cli.mjs +961 -1551
- package/dist/config.d.mts +9 -6
- package/dist/config.mjs +9 -11
- package/dist/constructors-DsfxKD6A.js +68 -0
- package/dist/error-BeZaDkS8.js +157 -0
- package/dist/experimental-index.browser.mjs +278 -44
- package/dist/experimental-index.d.mts +228 -68
- package/dist/experimental-index.mjs +274 -55
- package/dist/experimental-runtime-types.d.ts +98 -0
- package/dist/filter-index.d.mts +104 -2
- package/dist/filter-index.mjs +144 -5
- package/dist/get-log-filter.d.mts +3 -0
- package/dist/get-log-filter.mjs +68 -0
- package/dist/index.browser.mjs +238 -3
- package/dist/index.d.mts +4 -3
- package/dist/index.mjs +53 -6
- package/dist/{shared/parse-ast-index-BHaE0ECV.cjs → normalize-string-or-regex-TtAGUp42.js} +74 -147
- package/dist/parallel-plugin-worker.mjs +27 -35
- package/dist/parallel-plugin.d.mts +7 -7
- package/dist/parallel-plugin.mjs +1 -2
- package/dist/parse-ast-index.d.mts +28 -5
- package/dist/parse-ast-index.mjs +60 -4
- package/dist/plugins-index.browser.mjs +40 -0
- package/dist/plugins-index.d.mts +33 -0
- package/dist/plugins-index.mjs +40 -0
- package/dist/resolve-tsconfig-DThkUPSZ.js +112 -0
- package/dist/rolldown-binding.wasi-browser.js +46 -24
- package/dist/rolldown-binding.wasi.cjs +67 -24
- package/dist/rolldown-binding.wasm32-wasi.wasm +0 -0
- package/dist/rolldown-build-Chx5S-TB.js +5349 -0
- package/dist/shared/bindingify-input-options-Czbczr8Z.mjs +2168 -0
- package/dist/shared/composable-filters-B2ByPP8y.mjs +224 -0
- package/dist/shared/constructors-BVnf_fH1.d.mts +37 -0
- package/dist/shared/constructors-CemeNi29.mjs +68 -0
- package/dist/shared/define-config-DJOr6Iwt.mjs +6 -0
- package/dist/shared/define-config-i6TWE2hm.d.mts +3855 -0
- package/dist/shared/error-CQ6njWsV.mjs +86 -0
- package/dist/shared/get-log-filter-semyr3Lj.d.mts +35 -0
- package/dist/shared/{load-config-D7UduHRZ.mjs → load-config-CxvL5JxT.mjs} +32 -36
- package/dist/shared/logging-C6h4g8dA.d.mts +50 -0
- package/dist/shared/{parse-ast-index-vu376yZ1.mjs → logs-D80CXhvg.mjs} +25 -123
- package/dist/shared/normalize-string-or-regex-CF3Uz6aU.mjs +57 -0
- package/dist/shared/parse-CRhjbrcT.mjs +73 -0
- package/dist/shared/{prompt-CxjDC0Gn.cjs → prompt-BYQIwEjg.mjs} +301 -310
- package/dist/shared/resolve-tsconfig-Cwoo4h_o.mjs +112 -0
- package/dist/shared/rolldown-C3wFxOwq.mjs +40 -0
- package/dist/shared/rolldown-build-ChZOz6BP.mjs +3318 -0
- package/dist/shared/transform-DEgNAQOQ.d.mts +149 -0
- package/dist/shared/types-Cx3HYorz.d.mts +1302 -0
- package/dist/shared/utils-6wxe_LMG.d.mts +22 -0
- package/dist/shared/watch-C1jC1oFT.mjs +373 -0
- package/dist/utils-index.browser.mjs +2414 -0
- package/dist/utils-index.d.mts +374 -0
- package/dist/utils-index.mjs +2415 -0
- package/package.json +33 -38
- package/dist/cli.cjs +0 -1748
- package/dist/cli.d.cts +0 -1
- package/dist/config.cjs +0 -12
- package/dist/config.d.cts +0 -11
- package/dist/experimental-index.cjs +0 -129
- package/dist/experimental-index.d.cts +0 -96
- package/dist/filter-index.cjs +0 -53
- package/dist/filter-index.d.cts +0 -3
- package/dist/index.cjs +0 -9
- package/dist/index.d.cts +0 -3
- package/dist/parallel-plugin-worker.cjs +0 -33
- package/dist/parallel-plugin-worker.d.cts +0 -1
- package/dist/parallel-plugin.cjs +0 -8
- package/dist/parallel-plugin.d.cts +0 -14
- package/dist/parse-ast-index.cjs +0 -4
- package/dist/parse-ast-index.d.cts +0 -9
- package/dist/shared/chunk-DDkG_k5U.cjs +0 -39
- package/dist/shared/chunk-DSsiIF1Z.mjs +0 -30
- package/dist/shared/define-config.d-D4lKXE9V.d.cts +0 -1165
- package/dist/shared/define-config.d-Dm9iNdt9.d.mts +0 -1165
- package/dist/shared/dist-BMVjvV-v.cjs +0 -249
- package/dist/shared/dist-CAn6dxW6.mjs +0 -153
- package/dist/shared/load-config-CtKjQ8Mn.cjs +0 -125
- package/dist/shared/prompt-GFYxfPw7.mjs +0 -854
- package/dist/shared/src-D0nc44MQ.mjs +0 -4691
- package/dist/shared/src-s89s870G.cjs +0 -4647
- package/dist/src-CeWghjQt.js +0 -4329
|
@@ -0,0 +1,374 @@
|
|
|
1
|
+
import { $ as JSXClosingElement, $n as TaggedTemplateExpression, $t as TSFunctionType, A as ExportAllDeclaration, An as TSRestType, At as ReturnStatement, B as IdentifierName, Bn as TSTypeAssertion, Bt as TSAsExpression, C as ClassBody, Cn as TSNumberKeyword, Ct as ObjectPattern, D as Decorator, Dn as TSParenthesizedType, Dt as Program, E as DebuggerStatement, En as TSParameterProperty, Et as PrivateIdentifier, F as ForInStatement, Fn as TSThisParameter, Ft as Super, G as ImportDefaultSpecifier, Gn as TSTypeParameterInstantiation, Gt as TSConditionalType, H as IfStatement, Hn as TSTypeOperator, Ht as TSBooleanKeyword, I as ForOfStatement, In as TSThisType, It as SwitchCase, J as ImportSpecifier, Jn as TSTypeReference, Jt as TSEnumBody, K as ImportExpression, Kn as TSTypePredicate, Kt as TSConstructSignatureDeclaration, L as ForStatement, Ln as TSTupleType, Lt as SwitchStatement, M as ExportNamedDeclaration, Mn as TSStringKeyword, Mt as SpreadElement, N as ExportSpecifier, Nn as TSSymbolKeyword, Nt as StaticBlock, O as DoWhileStatement, On as TSPropertySignature, Ot as PropertyDefinition, P as ExpressionStatement, Pn as TSTemplateLiteralType, Pt as StringLiteral, Q as JSXAttribute, Qn as TSVoidKeyword, Qt as TSExternalModuleReference, R as FormalParameterRest, Rn as TSTypeAliasDeclaration, Rt as TSAnyKeyword, S as Class, Sn as TSNullKeyword, St as ObjectExpression, T as ContinueStatement, Tn as TSOptionalType, Tt as ParenthesizedExpression, U as ImportAttribute, Un as TSTypeParameter, Ut as TSCallSignatureDeclaration, V as IdentifierReference, Vn as TSTypeLiteral, Vt as TSBigIntKeyword, W as ImportDeclaration, Wn as TSTypeParameterDeclaration, Wt as TSClassImplements, X as JSDocNullableType, Xn as TSUnionType, Xt as TSEnumMember, Y as JSDocNonNullableType, Yn as TSUndefinedKeyword, Yt as TSEnumDeclaration, Z as JSDocUnknownType, Zn as TSUnknownKeyword, Zt as TSExportAssignment, _ as BooleanLiteral, _n as TSModuleDeclaration, _t as MetaProperty, a as AssignmentExpression, an as TSIndexedAccessType, ar as UnaryExpression, at as JSXIdentifier, b as CatchClause, bn as TSNeverKeyword, bt as NullLiteral, c as AssignmentTargetPropertyProperty, cn as TSInterfaceBody, cr as VariableDeclaration, ct as JSXOpeningElement, d as BigIntLiteral, dn as TSIntersectionType, dr as WithStatement, dt as JSXSpreadChild, en as TSGlobalDeclaration, er as TemplateElement, et as JSXClosingFragment, f as BinaryExpression, fn as TSIntrinsicKeyword, fr as YieldExpression, ft as JSXText, g as BlockStatement, gn as TSModuleBlock, gt as MemberExpression, h as BindingRestElement, hn as TSMethodSignature, ht as LogicalExpression, i as ArrowFunctionExpression, in as TSIndexSignatureName, ir as TryStatement, it as JSXFragment, j as ExportDefaultDeclaration, jn as TSSatisfiesExpression, jt as SequenceExpression, k as EmptyStatement, kn as TSQualifiedName, kt as RegExpLiteral, l as AssignmentTargetRest, ln as TSInterfaceDeclaration, lr as VariableDeclarator, lt as JSXOpeningFragment, m as BindingProperty, mn as TSMappedType, mt as LabeledStatement, n as ArrayExpression, nn as TSImportType, nr as ThisExpression, nt as JSXEmptyExpression, o as AssignmentPattern, on as TSInferType, or as UpdateExpression, ot as JSXMemberExpression, p as BindingIdentifier, pn as TSLiteralType, pr as types_d_exports, pt as LabelIdentifier, q as ImportNamespaceSpecifier, qn as TSTypeQuery, qt as TSConstructorType, r as ArrayPattern, rn as TSIndexSignature, rr as ThrowStatement, rt as JSXExpressionContainer, s as AssignmentTargetProperty, sn as TSInstantiationExpression, sr as V8IntrinsicExpression, st as JSXNamespacedName, t as AccessorProperty, tn as TSImportEqualsDeclaration, tr as TemplateLiteral, tt as JSXElement, u as AwaitExpression, un as TSInterfaceHeritage, ur as WhileStatement, ut as JSXSpreadAttribute, v as BreakStatement, vn as TSNamedTupleMember, vt as MethodDefinition, w as ConditionalExpression, wn as TSObjectKeyword, wt as ObjectProperty, x as ChainExpression, xn as TSNonNullExpression, xt as NumericLiteral, y as CallExpression, yn as TSNamespaceExportDeclaration, yt as NewExpression, z as Function, zn as TSTypeAnnotation, zt as TSArrayType } from "./shared/types-Cx3HYorz.mjs";
|
|
2
|
+
import { a as transform, c as MinifyResult, d as ParseResult, f as ParserOptions, h as TsconfigCache, i as TsconfigRawOptions, l as minify, m as parseSync, n as TransformResult, o as transformSync, p as parse, r as TsconfigCompilerOptions, s as MinifyOptions, t as TransformOptions, u as minifySync } from "./shared/transform-DEgNAQOQ.mjs";
|
|
3
|
+
|
|
4
|
+
//#region ../../node_modules/.pnpm/oxc-parser@0.120.0/node_modules/oxc-parser/src-js/generated/visit/visitor.d.ts
|
|
5
|
+
interface VisitorObject$1 {
|
|
6
|
+
DebuggerStatement?: (node: DebuggerStatement) => void;
|
|
7
|
+
"DebuggerStatement:exit"?: (node: DebuggerStatement) => void;
|
|
8
|
+
EmptyStatement?: (node: EmptyStatement) => void;
|
|
9
|
+
"EmptyStatement:exit"?: (node: EmptyStatement) => void;
|
|
10
|
+
Literal?: (node: BooleanLiteral | NullLiteral | NumericLiteral | StringLiteral | BigIntLiteral | RegExpLiteral) => void;
|
|
11
|
+
"Literal:exit"?: (node: BooleanLiteral | NullLiteral | NumericLiteral | StringLiteral | BigIntLiteral | RegExpLiteral) => void;
|
|
12
|
+
PrivateIdentifier?: (node: PrivateIdentifier) => void;
|
|
13
|
+
"PrivateIdentifier:exit"?: (node: PrivateIdentifier) => void;
|
|
14
|
+
Super?: (node: Super) => void;
|
|
15
|
+
"Super:exit"?: (node: Super) => void;
|
|
16
|
+
TemplateElement?: (node: TemplateElement) => void;
|
|
17
|
+
"TemplateElement:exit"?: (node: TemplateElement) => void;
|
|
18
|
+
ThisExpression?: (node: ThisExpression) => void;
|
|
19
|
+
"ThisExpression:exit"?: (node: ThisExpression) => void;
|
|
20
|
+
JSXClosingFragment?: (node: JSXClosingFragment) => void;
|
|
21
|
+
"JSXClosingFragment:exit"?: (node: JSXClosingFragment) => void;
|
|
22
|
+
JSXEmptyExpression?: (node: JSXEmptyExpression) => void;
|
|
23
|
+
"JSXEmptyExpression:exit"?: (node: JSXEmptyExpression) => void;
|
|
24
|
+
JSXIdentifier?: (node: JSXIdentifier) => void;
|
|
25
|
+
"JSXIdentifier:exit"?: (node: JSXIdentifier) => void;
|
|
26
|
+
JSXOpeningFragment?: (node: JSXOpeningFragment) => void;
|
|
27
|
+
"JSXOpeningFragment:exit"?: (node: JSXOpeningFragment) => void;
|
|
28
|
+
JSXText?: (node: JSXText) => void;
|
|
29
|
+
"JSXText:exit"?: (node: JSXText) => void;
|
|
30
|
+
TSAnyKeyword?: (node: TSAnyKeyword) => void;
|
|
31
|
+
"TSAnyKeyword:exit"?: (node: TSAnyKeyword) => void;
|
|
32
|
+
TSBigIntKeyword?: (node: TSBigIntKeyword) => void;
|
|
33
|
+
"TSBigIntKeyword:exit"?: (node: TSBigIntKeyword) => void;
|
|
34
|
+
TSBooleanKeyword?: (node: TSBooleanKeyword) => void;
|
|
35
|
+
"TSBooleanKeyword:exit"?: (node: TSBooleanKeyword) => void;
|
|
36
|
+
TSIntrinsicKeyword?: (node: TSIntrinsicKeyword) => void;
|
|
37
|
+
"TSIntrinsicKeyword:exit"?: (node: TSIntrinsicKeyword) => void;
|
|
38
|
+
TSJSDocUnknownType?: (node: JSDocUnknownType) => void;
|
|
39
|
+
"TSJSDocUnknownType:exit"?: (node: JSDocUnknownType) => void;
|
|
40
|
+
TSNeverKeyword?: (node: TSNeverKeyword) => void;
|
|
41
|
+
"TSNeverKeyword:exit"?: (node: TSNeverKeyword) => void;
|
|
42
|
+
TSNullKeyword?: (node: TSNullKeyword) => void;
|
|
43
|
+
"TSNullKeyword:exit"?: (node: TSNullKeyword) => void;
|
|
44
|
+
TSNumberKeyword?: (node: TSNumberKeyword) => void;
|
|
45
|
+
"TSNumberKeyword:exit"?: (node: TSNumberKeyword) => void;
|
|
46
|
+
TSObjectKeyword?: (node: TSObjectKeyword) => void;
|
|
47
|
+
"TSObjectKeyword:exit"?: (node: TSObjectKeyword) => void;
|
|
48
|
+
TSStringKeyword?: (node: TSStringKeyword) => void;
|
|
49
|
+
"TSStringKeyword:exit"?: (node: TSStringKeyword) => void;
|
|
50
|
+
TSSymbolKeyword?: (node: TSSymbolKeyword) => void;
|
|
51
|
+
"TSSymbolKeyword:exit"?: (node: TSSymbolKeyword) => void;
|
|
52
|
+
TSThisType?: (node: TSThisType) => void;
|
|
53
|
+
"TSThisType:exit"?: (node: TSThisType) => void;
|
|
54
|
+
TSUndefinedKeyword?: (node: TSUndefinedKeyword) => void;
|
|
55
|
+
"TSUndefinedKeyword:exit"?: (node: TSUndefinedKeyword) => void;
|
|
56
|
+
TSUnknownKeyword?: (node: TSUnknownKeyword) => void;
|
|
57
|
+
"TSUnknownKeyword:exit"?: (node: TSUnknownKeyword) => void;
|
|
58
|
+
TSVoidKeyword?: (node: TSVoidKeyword) => void;
|
|
59
|
+
"TSVoidKeyword:exit"?: (node: TSVoidKeyword) => void;
|
|
60
|
+
AccessorProperty?: (node: AccessorProperty) => void;
|
|
61
|
+
"AccessorProperty:exit"?: (node: AccessorProperty) => void;
|
|
62
|
+
ArrayExpression?: (node: ArrayExpression) => void;
|
|
63
|
+
"ArrayExpression:exit"?: (node: ArrayExpression) => void;
|
|
64
|
+
ArrayPattern?: (node: ArrayPattern) => void;
|
|
65
|
+
"ArrayPattern:exit"?: (node: ArrayPattern) => void;
|
|
66
|
+
ArrowFunctionExpression?: (node: ArrowFunctionExpression) => void;
|
|
67
|
+
"ArrowFunctionExpression:exit"?: (node: ArrowFunctionExpression) => void;
|
|
68
|
+
AssignmentExpression?: (node: AssignmentExpression) => void;
|
|
69
|
+
"AssignmentExpression:exit"?: (node: AssignmentExpression) => void;
|
|
70
|
+
AssignmentPattern?: (node: AssignmentPattern) => void;
|
|
71
|
+
"AssignmentPattern:exit"?: (node: AssignmentPattern) => void;
|
|
72
|
+
AwaitExpression?: (node: AwaitExpression) => void;
|
|
73
|
+
"AwaitExpression:exit"?: (node: AwaitExpression) => void;
|
|
74
|
+
BinaryExpression?: (node: BinaryExpression) => void;
|
|
75
|
+
"BinaryExpression:exit"?: (node: BinaryExpression) => void;
|
|
76
|
+
BlockStatement?: (node: BlockStatement) => void;
|
|
77
|
+
"BlockStatement:exit"?: (node: BlockStatement) => void;
|
|
78
|
+
BreakStatement?: (node: BreakStatement) => void;
|
|
79
|
+
"BreakStatement:exit"?: (node: BreakStatement) => void;
|
|
80
|
+
CallExpression?: (node: CallExpression) => void;
|
|
81
|
+
"CallExpression:exit"?: (node: CallExpression) => void;
|
|
82
|
+
CatchClause?: (node: CatchClause) => void;
|
|
83
|
+
"CatchClause:exit"?: (node: CatchClause) => void;
|
|
84
|
+
ChainExpression?: (node: ChainExpression) => void;
|
|
85
|
+
"ChainExpression:exit"?: (node: ChainExpression) => void;
|
|
86
|
+
ClassBody?: (node: ClassBody) => void;
|
|
87
|
+
"ClassBody:exit"?: (node: ClassBody) => void;
|
|
88
|
+
ClassDeclaration?: (node: Class) => void;
|
|
89
|
+
"ClassDeclaration:exit"?: (node: Class) => void;
|
|
90
|
+
ClassExpression?: (node: Class) => void;
|
|
91
|
+
"ClassExpression:exit"?: (node: Class) => void;
|
|
92
|
+
ConditionalExpression?: (node: ConditionalExpression) => void;
|
|
93
|
+
"ConditionalExpression:exit"?: (node: ConditionalExpression) => void;
|
|
94
|
+
ContinueStatement?: (node: ContinueStatement) => void;
|
|
95
|
+
"ContinueStatement:exit"?: (node: ContinueStatement) => void;
|
|
96
|
+
Decorator?: (node: Decorator) => void;
|
|
97
|
+
"Decorator:exit"?: (node: Decorator) => void;
|
|
98
|
+
DoWhileStatement?: (node: DoWhileStatement) => void;
|
|
99
|
+
"DoWhileStatement:exit"?: (node: DoWhileStatement) => void;
|
|
100
|
+
ExportAllDeclaration?: (node: ExportAllDeclaration) => void;
|
|
101
|
+
"ExportAllDeclaration:exit"?: (node: ExportAllDeclaration) => void;
|
|
102
|
+
ExportDefaultDeclaration?: (node: ExportDefaultDeclaration) => void;
|
|
103
|
+
"ExportDefaultDeclaration:exit"?: (node: ExportDefaultDeclaration) => void;
|
|
104
|
+
ExportNamedDeclaration?: (node: ExportNamedDeclaration) => void;
|
|
105
|
+
"ExportNamedDeclaration:exit"?: (node: ExportNamedDeclaration) => void;
|
|
106
|
+
ExportSpecifier?: (node: ExportSpecifier) => void;
|
|
107
|
+
"ExportSpecifier:exit"?: (node: ExportSpecifier) => void;
|
|
108
|
+
ExpressionStatement?: (node: ExpressionStatement) => void;
|
|
109
|
+
"ExpressionStatement:exit"?: (node: ExpressionStatement) => void;
|
|
110
|
+
ForInStatement?: (node: ForInStatement) => void;
|
|
111
|
+
"ForInStatement:exit"?: (node: ForInStatement) => void;
|
|
112
|
+
ForOfStatement?: (node: ForOfStatement) => void;
|
|
113
|
+
"ForOfStatement:exit"?: (node: ForOfStatement) => void;
|
|
114
|
+
ForStatement?: (node: ForStatement) => void;
|
|
115
|
+
"ForStatement:exit"?: (node: ForStatement) => void;
|
|
116
|
+
FunctionDeclaration?: (node: Function) => void;
|
|
117
|
+
"FunctionDeclaration:exit"?: (node: Function) => void;
|
|
118
|
+
FunctionExpression?: (node: Function) => void;
|
|
119
|
+
"FunctionExpression:exit"?: (node: Function) => void;
|
|
120
|
+
Identifier?: (node: IdentifierName | IdentifierReference | BindingIdentifier | LabelIdentifier | TSThisParameter | TSIndexSignatureName) => void;
|
|
121
|
+
"Identifier:exit"?: (node: IdentifierName | IdentifierReference | BindingIdentifier | LabelIdentifier | TSThisParameter | TSIndexSignatureName) => void;
|
|
122
|
+
IfStatement?: (node: IfStatement) => void;
|
|
123
|
+
"IfStatement:exit"?: (node: IfStatement) => void;
|
|
124
|
+
ImportAttribute?: (node: ImportAttribute) => void;
|
|
125
|
+
"ImportAttribute:exit"?: (node: ImportAttribute) => void;
|
|
126
|
+
ImportDeclaration?: (node: ImportDeclaration) => void;
|
|
127
|
+
"ImportDeclaration:exit"?: (node: ImportDeclaration) => void;
|
|
128
|
+
ImportDefaultSpecifier?: (node: ImportDefaultSpecifier) => void;
|
|
129
|
+
"ImportDefaultSpecifier:exit"?: (node: ImportDefaultSpecifier) => void;
|
|
130
|
+
ImportExpression?: (node: ImportExpression) => void;
|
|
131
|
+
"ImportExpression:exit"?: (node: ImportExpression) => void;
|
|
132
|
+
ImportNamespaceSpecifier?: (node: ImportNamespaceSpecifier) => void;
|
|
133
|
+
"ImportNamespaceSpecifier:exit"?: (node: ImportNamespaceSpecifier) => void;
|
|
134
|
+
ImportSpecifier?: (node: ImportSpecifier) => void;
|
|
135
|
+
"ImportSpecifier:exit"?: (node: ImportSpecifier) => void;
|
|
136
|
+
LabeledStatement?: (node: LabeledStatement) => void;
|
|
137
|
+
"LabeledStatement:exit"?: (node: LabeledStatement) => void;
|
|
138
|
+
LogicalExpression?: (node: LogicalExpression) => void;
|
|
139
|
+
"LogicalExpression:exit"?: (node: LogicalExpression) => void;
|
|
140
|
+
MemberExpression?: (node: MemberExpression) => void;
|
|
141
|
+
"MemberExpression:exit"?: (node: MemberExpression) => void;
|
|
142
|
+
MetaProperty?: (node: MetaProperty) => void;
|
|
143
|
+
"MetaProperty:exit"?: (node: MetaProperty) => void;
|
|
144
|
+
MethodDefinition?: (node: MethodDefinition) => void;
|
|
145
|
+
"MethodDefinition:exit"?: (node: MethodDefinition) => void;
|
|
146
|
+
NewExpression?: (node: NewExpression) => void;
|
|
147
|
+
"NewExpression:exit"?: (node: NewExpression) => void;
|
|
148
|
+
ObjectExpression?: (node: ObjectExpression) => void;
|
|
149
|
+
"ObjectExpression:exit"?: (node: ObjectExpression) => void;
|
|
150
|
+
ObjectPattern?: (node: ObjectPattern) => void;
|
|
151
|
+
"ObjectPattern:exit"?: (node: ObjectPattern) => void;
|
|
152
|
+
ParenthesizedExpression?: (node: ParenthesizedExpression) => void;
|
|
153
|
+
"ParenthesizedExpression:exit"?: (node: ParenthesizedExpression) => void;
|
|
154
|
+
Program?: (node: Program) => void;
|
|
155
|
+
"Program:exit"?: (node: Program) => void;
|
|
156
|
+
Property?: (node: ObjectProperty | AssignmentTargetProperty | AssignmentTargetPropertyProperty | BindingProperty) => void;
|
|
157
|
+
"Property:exit"?: (node: ObjectProperty | AssignmentTargetProperty | AssignmentTargetPropertyProperty | BindingProperty) => void;
|
|
158
|
+
PropertyDefinition?: (node: PropertyDefinition) => void;
|
|
159
|
+
"PropertyDefinition:exit"?: (node: PropertyDefinition) => void;
|
|
160
|
+
RestElement?: (node: AssignmentTargetRest | BindingRestElement | FormalParameterRest) => void;
|
|
161
|
+
"RestElement:exit"?: (node: AssignmentTargetRest | BindingRestElement | FormalParameterRest) => void;
|
|
162
|
+
ReturnStatement?: (node: ReturnStatement) => void;
|
|
163
|
+
"ReturnStatement:exit"?: (node: ReturnStatement) => void;
|
|
164
|
+
SequenceExpression?: (node: SequenceExpression) => void;
|
|
165
|
+
"SequenceExpression:exit"?: (node: SequenceExpression) => void;
|
|
166
|
+
SpreadElement?: (node: SpreadElement) => void;
|
|
167
|
+
"SpreadElement:exit"?: (node: SpreadElement) => void;
|
|
168
|
+
StaticBlock?: (node: StaticBlock) => void;
|
|
169
|
+
"StaticBlock:exit"?: (node: StaticBlock) => void;
|
|
170
|
+
SwitchCase?: (node: SwitchCase) => void;
|
|
171
|
+
"SwitchCase:exit"?: (node: SwitchCase) => void;
|
|
172
|
+
SwitchStatement?: (node: SwitchStatement) => void;
|
|
173
|
+
"SwitchStatement:exit"?: (node: SwitchStatement) => void;
|
|
174
|
+
TaggedTemplateExpression?: (node: TaggedTemplateExpression) => void;
|
|
175
|
+
"TaggedTemplateExpression:exit"?: (node: TaggedTemplateExpression) => void;
|
|
176
|
+
TemplateLiteral?: (node: TemplateLiteral) => void;
|
|
177
|
+
"TemplateLiteral:exit"?: (node: TemplateLiteral) => void;
|
|
178
|
+
ThrowStatement?: (node: ThrowStatement) => void;
|
|
179
|
+
"ThrowStatement:exit"?: (node: ThrowStatement) => void;
|
|
180
|
+
TryStatement?: (node: TryStatement) => void;
|
|
181
|
+
"TryStatement:exit"?: (node: TryStatement) => void;
|
|
182
|
+
UnaryExpression?: (node: UnaryExpression) => void;
|
|
183
|
+
"UnaryExpression:exit"?: (node: UnaryExpression) => void;
|
|
184
|
+
UpdateExpression?: (node: UpdateExpression) => void;
|
|
185
|
+
"UpdateExpression:exit"?: (node: UpdateExpression) => void;
|
|
186
|
+
V8IntrinsicExpression?: (node: V8IntrinsicExpression) => void;
|
|
187
|
+
"V8IntrinsicExpression:exit"?: (node: V8IntrinsicExpression) => void;
|
|
188
|
+
VariableDeclaration?: (node: VariableDeclaration) => void;
|
|
189
|
+
"VariableDeclaration:exit"?: (node: VariableDeclaration) => void;
|
|
190
|
+
VariableDeclarator?: (node: VariableDeclarator) => void;
|
|
191
|
+
"VariableDeclarator:exit"?: (node: VariableDeclarator) => void;
|
|
192
|
+
WhileStatement?: (node: WhileStatement) => void;
|
|
193
|
+
"WhileStatement:exit"?: (node: WhileStatement) => void;
|
|
194
|
+
WithStatement?: (node: WithStatement) => void;
|
|
195
|
+
"WithStatement:exit"?: (node: WithStatement) => void;
|
|
196
|
+
YieldExpression?: (node: YieldExpression) => void;
|
|
197
|
+
"YieldExpression:exit"?: (node: YieldExpression) => void;
|
|
198
|
+
JSXAttribute?: (node: JSXAttribute) => void;
|
|
199
|
+
"JSXAttribute:exit"?: (node: JSXAttribute) => void;
|
|
200
|
+
JSXClosingElement?: (node: JSXClosingElement) => void;
|
|
201
|
+
"JSXClosingElement:exit"?: (node: JSXClosingElement) => void;
|
|
202
|
+
JSXElement?: (node: JSXElement) => void;
|
|
203
|
+
"JSXElement:exit"?: (node: JSXElement) => void;
|
|
204
|
+
JSXExpressionContainer?: (node: JSXExpressionContainer) => void;
|
|
205
|
+
"JSXExpressionContainer:exit"?: (node: JSXExpressionContainer) => void;
|
|
206
|
+
JSXFragment?: (node: JSXFragment) => void;
|
|
207
|
+
"JSXFragment:exit"?: (node: JSXFragment) => void;
|
|
208
|
+
JSXMemberExpression?: (node: JSXMemberExpression) => void;
|
|
209
|
+
"JSXMemberExpression:exit"?: (node: JSXMemberExpression) => void;
|
|
210
|
+
JSXNamespacedName?: (node: JSXNamespacedName) => void;
|
|
211
|
+
"JSXNamespacedName:exit"?: (node: JSXNamespacedName) => void;
|
|
212
|
+
JSXOpeningElement?: (node: JSXOpeningElement) => void;
|
|
213
|
+
"JSXOpeningElement:exit"?: (node: JSXOpeningElement) => void;
|
|
214
|
+
JSXSpreadAttribute?: (node: JSXSpreadAttribute) => void;
|
|
215
|
+
"JSXSpreadAttribute:exit"?: (node: JSXSpreadAttribute) => void;
|
|
216
|
+
JSXSpreadChild?: (node: JSXSpreadChild) => void;
|
|
217
|
+
"JSXSpreadChild:exit"?: (node: JSXSpreadChild) => void;
|
|
218
|
+
TSAbstractAccessorProperty?: (node: AccessorProperty) => void;
|
|
219
|
+
"TSAbstractAccessorProperty:exit"?: (node: AccessorProperty) => void;
|
|
220
|
+
TSAbstractMethodDefinition?: (node: MethodDefinition) => void;
|
|
221
|
+
"TSAbstractMethodDefinition:exit"?: (node: MethodDefinition) => void;
|
|
222
|
+
TSAbstractPropertyDefinition?: (node: PropertyDefinition) => void;
|
|
223
|
+
"TSAbstractPropertyDefinition:exit"?: (node: PropertyDefinition) => void;
|
|
224
|
+
TSArrayType?: (node: TSArrayType) => void;
|
|
225
|
+
"TSArrayType:exit"?: (node: TSArrayType) => void;
|
|
226
|
+
TSAsExpression?: (node: TSAsExpression) => void;
|
|
227
|
+
"TSAsExpression:exit"?: (node: TSAsExpression) => void;
|
|
228
|
+
TSCallSignatureDeclaration?: (node: TSCallSignatureDeclaration) => void;
|
|
229
|
+
"TSCallSignatureDeclaration:exit"?: (node: TSCallSignatureDeclaration) => void;
|
|
230
|
+
TSClassImplements?: (node: TSClassImplements) => void;
|
|
231
|
+
"TSClassImplements:exit"?: (node: TSClassImplements) => void;
|
|
232
|
+
TSConditionalType?: (node: TSConditionalType) => void;
|
|
233
|
+
"TSConditionalType:exit"?: (node: TSConditionalType) => void;
|
|
234
|
+
TSConstructSignatureDeclaration?: (node: TSConstructSignatureDeclaration) => void;
|
|
235
|
+
"TSConstructSignatureDeclaration:exit"?: (node: TSConstructSignatureDeclaration) => void;
|
|
236
|
+
TSConstructorType?: (node: TSConstructorType) => void;
|
|
237
|
+
"TSConstructorType:exit"?: (node: TSConstructorType) => void;
|
|
238
|
+
TSDeclareFunction?: (node: Function) => void;
|
|
239
|
+
"TSDeclareFunction:exit"?: (node: Function) => void;
|
|
240
|
+
TSEmptyBodyFunctionExpression?: (node: Function) => void;
|
|
241
|
+
"TSEmptyBodyFunctionExpression:exit"?: (node: Function) => void;
|
|
242
|
+
TSEnumBody?: (node: TSEnumBody) => void;
|
|
243
|
+
"TSEnumBody:exit"?: (node: TSEnumBody) => void;
|
|
244
|
+
TSEnumDeclaration?: (node: TSEnumDeclaration) => void;
|
|
245
|
+
"TSEnumDeclaration:exit"?: (node: TSEnumDeclaration) => void;
|
|
246
|
+
TSEnumMember?: (node: TSEnumMember) => void;
|
|
247
|
+
"TSEnumMember:exit"?: (node: TSEnumMember) => void;
|
|
248
|
+
TSExportAssignment?: (node: TSExportAssignment) => void;
|
|
249
|
+
"TSExportAssignment:exit"?: (node: TSExportAssignment) => void;
|
|
250
|
+
TSExternalModuleReference?: (node: TSExternalModuleReference) => void;
|
|
251
|
+
"TSExternalModuleReference:exit"?: (node: TSExternalModuleReference) => void;
|
|
252
|
+
TSFunctionType?: (node: TSFunctionType) => void;
|
|
253
|
+
"TSFunctionType:exit"?: (node: TSFunctionType) => void;
|
|
254
|
+
TSImportEqualsDeclaration?: (node: TSImportEqualsDeclaration) => void;
|
|
255
|
+
"TSImportEqualsDeclaration:exit"?: (node: TSImportEqualsDeclaration) => void;
|
|
256
|
+
TSImportType?: (node: TSImportType) => void;
|
|
257
|
+
"TSImportType:exit"?: (node: TSImportType) => void;
|
|
258
|
+
TSIndexSignature?: (node: TSIndexSignature) => void;
|
|
259
|
+
"TSIndexSignature:exit"?: (node: TSIndexSignature) => void;
|
|
260
|
+
TSIndexedAccessType?: (node: TSIndexedAccessType) => void;
|
|
261
|
+
"TSIndexedAccessType:exit"?: (node: TSIndexedAccessType) => void;
|
|
262
|
+
TSInferType?: (node: TSInferType) => void;
|
|
263
|
+
"TSInferType:exit"?: (node: TSInferType) => void;
|
|
264
|
+
TSInstantiationExpression?: (node: TSInstantiationExpression) => void;
|
|
265
|
+
"TSInstantiationExpression:exit"?: (node: TSInstantiationExpression) => void;
|
|
266
|
+
TSInterfaceBody?: (node: TSInterfaceBody) => void;
|
|
267
|
+
"TSInterfaceBody:exit"?: (node: TSInterfaceBody) => void;
|
|
268
|
+
TSInterfaceDeclaration?: (node: TSInterfaceDeclaration) => void;
|
|
269
|
+
"TSInterfaceDeclaration:exit"?: (node: TSInterfaceDeclaration) => void;
|
|
270
|
+
TSInterfaceHeritage?: (node: TSInterfaceHeritage) => void;
|
|
271
|
+
"TSInterfaceHeritage:exit"?: (node: TSInterfaceHeritage) => void;
|
|
272
|
+
TSIntersectionType?: (node: TSIntersectionType) => void;
|
|
273
|
+
"TSIntersectionType:exit"?: (node: TSIntersectionType) => void;
|
|
274
|
+
TSJSDocNonNullableType?: (node: JSDocNonNullableType) => void;
|
|
275
|
+
"TSJSDocNonNullableType:exit"?: (node: JSDocNonNullableType) => void;
|
|
276
|
+
TSJSDocNullableType?: (node: JSDocNullableType) => void;
|
|
277
|
+
"TSJSDocNullableType:exit"?: (node: JSDocNullableType) => void;
|
|
278
|
+
TSLiteralType?: (node: TSLiteralType) => void;
|
|
279
|
+
"TSLiteralType:exit"?: (node: TSLiteralType) => void;
|
|
280
|
+
TSMappedType?: (node: TSMappedType) => void;
|
|
281
|
+
"TSMappedType:exit"?: (node: TSMappedType) => void;
|
|
282
|
+
TSMethodSignature?: (node: TSMethodSignature) => void;
|
|
283
|
+
"TSMethodSignature:exit"?: (node: TSMethodSignature) => void;
|
|
284
|
+
TSModuleBlock?: (node: TSModuleBlock) => void;
|
|
285
|
+
"TSModuleBlock:exit"?: (node: TSModuleBlock) => void;
|
|
286
|
+
TSModuleDeclaration?: (node: TSModuleDeclaration | TSGlobalDeclaration) => void;
|
|
287
|
+
"TSModuleDeclaration:exit"?: (node: TSModuleDeclaration | TSGlobalDeclaration) => void;
|
|
288
|
+
TSNamedTupleMember?: (node: TSNamedTupleMember) => void;
|
|
289
|
+
"TSNamedTupleMember:exit"?: (node: TSNamedTupleMember) => void;
|
|
290
|
+
TSNamespaceExportDeclaration?: (node: TSNamespaceExportDeclaration) => void;
|
|
291
|
+
"TSNamespaceExportDeclaration:exit"?: (node: TSNamespaceExportDeclaration) => void;
|
|
292
|
+
TSNonNullExpression?: (node: TSNonNullExpression) => void;
|
|
293
|
+
"TSNonNullExpression:exit"?: (node: TSNonNullExpression) => void;
|
|
294
|
+
TSOptionalType?: (node: TSOptionalType) => void;
|
|
295
|
+
"TSOptionalType:exit"?: (node: TSOptionalType) => void;
|
|
296
|
+
TSParameterProperty?: (node: TSParameterProperty) => void;
|
|
297
|
+
"TSParameterProperty:exit"?: (node: TSParameterProperty) => void;
|
|
298
|
+
TSParenthesizedType?: (node: TSParenthesizedType) => void;
|
|
299
|
+
"TSParenthesizedType:exit"?: (node: TSParenthesizedType) => void;
|
|
300
|
+
TSPropertySignature?: (node: TSPropertySignature) => void;
|
|
301
|
+
"TSPropertySignature:exit"?: (node: TSPropertySignature) => void;
|
|
302
|
+
TSQualifiedName?: (node: TSQualifiedName) => void;
|
|
303
|
+
"TSQualifiedName:exit"?: (node: TSQualifiedName) => void;
|
|
304
|
+
TSRestType?: (node: TSRestType) => void;
|
|
305
|
+
"TSRestType:exit"?: (node: TSRestType) => void;
|
|
306
|
+
TSSatisfiesExpression?: (node: TSSatisfiesExpression) => void;
|
|
307
|
+
"TSSatisfiesExpression:exit"?: (node: TSSatisfiesExpression) => void;
|
|
308
|
+
TSTemplateLiteralType?: (node: TSTemplateLiteralType) => void;
|
|
309
|
+
"TSTemplateLiteralType:exit"?: (node: TSTemplateLiteralType) => void;
|
|
310
|
+
TSTupleType?: (node: TSTupleType) => void;
|
|
311
|
+
"TSTupleType:exit"?: (node: TSTupleType) => void;
|
|
312
|
+
TSTypeAliasDeclaration?: (node: TSTypeAliasDeclaration) => void;
|
|
313
|
+
"TSTypeAliasDeclaration:exit"?: (node: TSTypeAliasDeclaration) => void;
|
|
314
|
+
TSTypeAnnotation?: (node: TSTypeAnnotation) => void;
|
|
315
|
+
"TSTypeAnnotation:exit"?: (node: TSTypeAnnotation) => void;
|
|
316
|
+
TSTypeAssertion?: (node: TSTypeAssertion) => void;
|
|
317
|
+
"TSTypeAssertion:exit"?: (node: TSTypeAssertion) => void;
|
|
318
|
+
TSTypeLiteral?: (node: TSTypeLiteral) => void;
|
|
319
|
+
"TSTypeLiteral:exit"?: (node: TSTypeLiteral) => void;
|
|
320
|
+
TSTypeOperator?: (node: TSTypeOperator) => void;
|
|
321
|
+
"TSTypeOperator:exit"?: (node: TSTypeOperator) => void;
|
|
322
|
+
TSTypeParameter?: (node: TSTypeParameter) => void;
|
|
323
|
+
"TSTypeParameter:exit"?: (node: TSTypeParameter) => void;
|
|
324
|
+
TSTypeParameterDeclaration?: (node: TSTypeParameterDeclaration) => void;
|
|
325
|
+
"TSTypeParameterDeclaration:exit"?: (node: TSTypeParameterDeclaration) => void;
|
|
326
|
+
TSTypeParameterInstantiation?: (node: TSTypeParameterInstantiation) => void;
|
|
327
|
+
"TSTypeParameterInstantiation:exit"?: (node: TSTypeParameterInstantiation) => void;
|
|
328
|
+
TSTypePredicate?: (node: TSTypePredicate) => void;
|
|
329
|
+
"TSTypePredicate:exit"?: (node: TSTypePredicate) => void;
|
|
330
|
+
TSTypeQuery?: (node: TSTypeQuery) => void;
|
|
331
|
+
"TSTypeQuery:exit"?: (node: TSTypeQuery) => void;
|
|
332
|
+
TSTypeReference?: (node: TSTypeReference) => void;
|
|
333
|
+
"TSTypeReference:exit"?: (node: TSTypeReference) => void;
|
|
334
|
+
TSUnionType?: (node: TSUnionType) => void;
|
|
335
|
+
"TSUnionType:exit"?: (node: TSUnionType) => void;
|
|
336
|
+
}
|
|
337
|
+
//#endregion
|
|
338
|
+
//#region src/utils/visitor.d.ts
|
|
339
|
+
/**
|
|
340
|
+
* Visitor object for traversing AST.
|
|
341
|
+
*
|
|
342
|
+
* @category Utilities
|
|
343
|
+
*/
|
|
344
|
+
type VisitorObject = VisitorObject$1;
|
|
345
|
+
/**
|
|
346
|
+
* Visitor class for traversing AST.
|
|
347
|
+
*
|
|
348
|
+
* @example
|
|
349
|
+
* ```ts
|
|
350
|
+
* import { Visitor } from 'rolldown/utils';
|
|
351
|
+
* import { parseSync } from 'rolldown/utils';
|
|
352
|
+
*
|
|
353
|
+
* const result = parseSync(...);
|
|
354
|
+
* const visitor = new Visitor({
|
|
355
|
+
* VariableDeclaration(path) {
|
|
356
|
+
* // Do something with the variable declaration
|
|
357
|
+
* },
|
|
358
|
+
* "VariableDeclaration:exit"(path) {
|
|
359
|
+
* // Do something after visiting the variable declaration
|
|
360
|
+
* }
|
|
361
|
+
* });
|
|
362
|
+
* visitor.visit(result.program);
|
|
363
|
+
* ```
|
|
364
|
+
*
|
|
365
|
+
* @category Utilities
|
|
366
|
+
* @experimental
|
|
367
|
+
*/
|
|
368
|
+
declare class Visitor {
|
|
369
|
+
#private;
|
|
370
|
+
constructor(visitor: VisitorObject);
|
|
371
|
+
visit(program: Program): void;
|
|
372
|
+
}
|
|
373
|
+
//#endregion
|
|
374
|
+
export { type types_d_exports as ESTree, type MinifyOptions, type MinifyResult, type ParseResult, type ParserOptions, type TransformOptions, type TransformResult, TsconfigCache, type TsconfigCompilerOptions, type TsconfigRawOptions, Visitor, type VisitorObject, minify, minifySync, parse, parseSync, transform, transformSync };
|