astro 3.0.13 → 3.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (235) hide show
  1. package/README.md +2 -2
  2. package/astro-jsx.d.ts +28 -1
  3. package/client.d.ts +9 -7
  4. package/components/ViewTransitions.astro +15 -15
  5. package/content-types.template.d.ts +7 -1
  6. package/dist/@types/astro.d.ts +38 -17
  7. package/dist/assets/build/generate.d.ts +1 -1
  8. package/dist/assets/build/remote.d.ts +1 -1
  9. package/dist/assets/consts.d.ts +2 -2
  10. package/dist/assets/consts.js +4 -10
  11. package/dist/assets/internal.d.ts +2 -2
  12. package/dist/assets/internal.js +3 -2
  13. package/dist/assets/services/service.d.ts +1 -1
  14. package/dist/assets/services/service.js +7 -3
  15. package/dist/assets/services/vendor/squoosh/avif/avif_node_dec.wasm.d.ts +1 -1
  16. package/dist/assets/services/vendor/squoosh/avif/avif_node_enc.wasm.d.ts +1 -1
  17. package/dist/assets/services/vendor/squoosh/codecs.d.ts +4 -4
  18. package/dist/assets/services/vendor/squoosh/image-pool.d.ts +1 -1
  19. package/dist/assets/services/vendor/squoosh/image.d.ts +1 -1
  20. package/dist/assets/services/vendor/squoosh/image_data.d.ts +1 -1
  21. package/dist/assets/services/vendor/squoosh/impl.d.ts +1 -1
  22. package/dist/assets/services/vendor/squoosh/mozjpeg/mozjpeg_node_dec.wasm.d.ts +1 -1
  23. package/dist/assets/services/vendor/squoosh/mozjpeg/mozjpeg_node_enc.wasm.d.ts +1 -1
  24. package/dist/assets/services/vendor/squoosh/png/squoosh_oxipng_bg.wasm.d.ts +1 -1
  25. package/dist/assets/services/vendor/squoosh/png/squoosh_png_bg.wasm.d.ts +1 -1
  26. package/dist/assets/services/vendor/squoosh/resize/squoosh_resize_bg.wasm.d.ts +1 -1
  27. package/dist/assets/services/vendor/squoosh/rotate/rotate.wasm.d.ts +1 -1
  28. package/dist/assets/services/vendor/squoosh/utils/workerPool.d.ts +1 -1
  29. package/dist/assets/services/vendor/squoosh/webp/webp_node_dec.wasm.d.ts +1 -1
  30. package/dist/assets/services/vendor/squoosh/webp/webp_node_enc.wasm.d.ts +1 -1
  31. package/dist/assets/types.d.ts +4 -1
  32. package/dist/assets/utils/metadata.d.ts +1 -1
  33. package/dist/assets/utils/metadata.js +6 -2
  34. package/dist/assets/vite-plugin-assets.d.ts +1 -1
  35. package/dist/assets/vite-plugin-assets.js +1 -1
  36. package/dist/cli/add/babel.d.ts +12 -11
  37. package/dist/config/index.d.ts +1 -1
  38. package/dist/config/vite-plugin-content-listen.d.ts +2 -2
  39. package/dist/content/server-listeners.d.ts +1 -1
  40. package/dist/content/types-generator.d.ts +2 -2
  41. package/dist/content/utils.d.ts +1 -1
  42. package/dist/content/vite-plugin-content-assets.d.ts +1 -1
  43. package/dist/content/vite-plugin-content-imports.d.ts +1 -1
  44. package/dist/content/vite-plugin-content-virtual-mod.d.ts +1 -1
  45. package/dist/core/app/common.d.ts +1 -1
  46. package/dist/core/app/index.d.ts +1 -1
  47. package/dist/core/app/node.d.ts +3 -3
  48. package/dist/core/app/ssrPipeline.d.ts +1 -1
  49. package/dist/core/app/types.d.ts +2 -2
  50. package/dist/core/build/buildPipeline.d.ts +4 -4
  51. package/dist/core/build/common.d.ts +1 -1
  52. package/dist/core/build/css-asset-name.d.ts +1 -1
  53. package/dist/core/build/generate.d.ts +2 -2
  54. package/dist/core/build/generate.js +1 -1
  55. package/dist/core/build/index.d.ts +1 -1
  56. package/dist/core/build/internal.d.ts +3 -3
  57. package/dist/core/build/page-data.d.ts +3 -3
  58. package/dist/core/build/plugin.d.ts +2 -2
  59. package/dist/core/build/plugins/index.d.ts +1 -1
  60. package/dist/core/build/plugins/plugin-css.d.ts +3 -3
  61. package/dist/core/build/plugins/plugin-hoisted-scripts.d.ts +3 -3
  62. package/dist/core/build/plugins/plugin-internals.d.ts +1 -1
  63. package/dist/core/build/plugins/plugin-manifest.d.ts +3 -3
  64. package/dist/core/build/plugins/plugin-manifest.js +2 -2
  65. package/dist/core/build/plugins/plugin-middleware.d.ts +3 -3
  66. package/dist/core/build/plugins/plugin-pages.d.ts +3 -3
  67. package/dist/core/build/plugins/plugin-prerender.d.ts +1 -1
  68. package/dist/core/build/plugins/plugin-renderers.d.ts +2 -2
  69. package/dist/core/build/plugins/plugin-ssr.d.ts +2 -2
  70. package/dist/core/build/plugins/plugin-ssr.js +2 -2
  71. package/dist/core/build/static-build.d.ts +2 -2
  72. package/dist/core/build/types.d.ts +5 -4
  73. package/dist/core/compile/cache.d.ts +1 -1
  74. package/dist/core/compile/compile.d.ts +1 -1
  75. package/dist/core/compile/index.d.ts +2 -2
  76. package/dist/core/config/config.d.ts +2 -2
  77. package/dist/core/config/index.d.ts +1 -1
  78. package/dist/core/config/schema.d.ts +29 -15
  79. package/dist/core/config/schema.js +1 -0
  80. package/dist/core/config/settings.d.ts +1 -1
  81. package/dist/core/config/vite-load.d.ts +1 -1
  82. package/dist/core/constants.js +1 -1
  83. package/dist/core/cookies/response.d.ts +1 -1
  84. package/dist/core/create-vite.d.ts +3 -3
  85. package/dist/core/create-vite.js +1 -1
  86. package/dist/core/dev/container.d.ts +4 -4
  87. package/dist/core/dev/dev.d.ts +3 -3
  88. package/dist/core/dev/dev.js +1 -1
  89. package/dist/core/dev/restart.d.ts +3 -3
  90. package/dist/core/endpoint/index.d.ts +3 -3
  91. package/dist/core/errors/dev/utils.js +4 -4
  92. package/dist/core/errors/errors-data.d.ts +12 -3
  93. package/dist/core/errors/errors-data.js +7 -4
  94. package/dist/core/errors/index.d.ts +1 -1
  95. package/dist/core/errors/overlay.js +2 -2
  96. package/dist/core/logger/node.d.ts +1 -1
  97. package/dist/core/messages.js +2 -2
  98. package/dist/core/middleware/callMiddleware.d.ts +2 -2
  99. package/dist/core/middleware/index.d.ts +2 -2
  100. package/dist/core/middleware/loadMiddleware.d.ts +2 -2
  101. package/dist/core/middleware/sequence.d.ts +1 -1
  102. package/dist/core/module-loader/loader.d.ts +2 -2
  103. package/dist/core/module-loader/vite.d.ts +1 -1
  104. package/dist/core/pipeline.d.ts +1 -1
  105. package/dist/core/preview/index.d.ts +1 -1
  106. package/dist/core/preview/static-preview-server.d.ts +3 -3
  107. package/dist/core/redirects/component.d.ts +2 -2
  108. package/dist/core/redirects/helpers.d.ts +1 -1
  109. package/dist/core/render/context.d.ts +2 -2
  110. package/dist/core/render/core.d.ts +1 -1
  111. package/dist/core/render/environment.d.ts +1 -1
  112. package/dist/core/render/index.d.ts +2 -2
  113. package/dist/core/render/paginate.d.ts +1 -1
  114. package/dist/core/render/params-and-props.d.ts +1 -1
  115. package/dist/core/render/renderer.d.ts +1 -1
  116. package/dist/core/render/result.d.ts +1 -1
  117. package/dist/core/render/route-cache.d.ts +1 -1
  118. package/dist/core/render/ssr-element.d.ts +2 -2
  119. package/dist/core/request.d.ts +2 -2
  120. package/dist/core/routing/manifest/create.d.ts +3 -3
  121. package/dist/core/routing/manifest/generator.d.ts +1 -1
  122. package/dist/core/routing/manifest/serialization.d.ts +1 -1
  123. package/dist/core/routing/match.d.ts +1 -1
  124. package/dist/core/routing/params.d.ts +1 -1
  125. package/dist/core/routing/validation.d.ts +2 -2
  126. package/dist/core/sync/index.d.ts +2 -2
  127. package/dist/core/util.d.ts +2 -2
  128. package/dist/events/session.d.ts +1 -1
  129. package/dist/integrations/astroFeaturesValidation.d.ts +1 -1
  130. package/dist/integrations/index.d.ts +3 -3
  131. package/dist/prerender/metadata.d.ts +1 -1
  132. package/dist/prerender/routing.d.ts +2 -2
  133. package/dist/prerender/utils.d.ts +1 -1
  134. package/dist/runtime/client/idle.d.ts +1 -1
  135. package/dist/runtime/client/load.d.ts +1 -1
  136. package/dist/runtime/client/media.d.ts +1 -1
  137. package/dist/runtime/client/only.d.ts +1 -1
  138. package/dist/runtime/client/visible.d.ts +1 -1
  139. package/dist/runtime/client/visible.prebuilt.d.ts +1 -1
  140. package/dist/runtime/client/visible.prebuilt.js +1 -1
  141. package/dist/runtime/server/astro-component.d.ts +1 -1
  142. package/dist/runtime/server/astro-global.d.ts +1 -1
  143. package/dist/runtime/server/astro-island.d.ts +1 -4
  144. package/dist/runtime/server/endpoint.d.ts +2 -2
  145. package/dist/runtime/server/hydration.d.ts +1 -1
  146. package/dist/runtime/server/render/astro/factory.d.ts +3 -3
  147. package/dist/runtime/server/render/astro/head-and-content.d.ts +1 -1
  148. package/dist/runtime/server/render/astro/index.d.ts +2 -2
  149. package/dist/runtime/server/render/astro/instance.d.ts +1 -1
  150. package/dist/runtime/server/render/astro/render.d.ts +1 -1
  151. package/dist/runtime/server/render/common.d.ts +1 -1
  152. package/dist/runtime/server/render/component.d.ts +1 -1
  153. package/dist/runtime/server/render/dom.d.ts +1 -1
  154. package/dist/runtime/server/render/head.d.ts +1 -1
  155. package/dist/runtime/server/render/index.d.ts +2 -2
  156. package/dist/runtime/server/render/page.d.ts +2 -2
  157. package/dist/runtime/server/render/tags.d.ts +2 -2
  158. package/dist/runtime/server/render/util.d.ts +1 -1
  159. package/dist/runtime/server/scripts.d.ts +1 -1
  160. package/dist/runtime/server/scripts.js +3 -3
  161. package/dist/runtime/server/serialize.d.ts +1 -1
  162. package/dist/runtime/server/transition.d.ts +1 -1
  163. package/dist/transitions/index.d.ts +1 -1
  164. package/dist/type-utils.d.ts +4 -0
  165. package/dist/vite-plugin-astro/hmr.d.ts +1 -1
  166. package/dist/vite-plugin-astro/index.d.ts +2 -2
  167. package/dist/vite-plugin-astro/metadata.d.ts +2 -2
  168. package/dist/vite-plugin-astro/types.d.ts +1 -1
  169. package/dist/vite-plugin-astro-server/base.d.ts +1 -1
  170. package/dist/vite-plugin-astro-server/controller.d.ts +2 -2
  171. package/dist/vite-plugin-astro-server/css.d.ts +1 -1
  172. package/dist/vite-plugin-astro-server/devPipeline.d.ts +4 -4
  173. package/dist/vite-plugin-astro-server/index.d.ts +1 -1
  174. package/dist/vite-plugin-astro-server/metadata.d.ts +2 -2
  175. package/dist/vite-plugin-astro-server/plugin.d.ts +2 -2
  176. package/dist/vite-plugin-astro-server/request.d.ts +4 -4
  177. package/dist/vite-plugin-astro-server/resolve.d.ts +1 -1
  178. package/dist/vite-plugin-astro-server/response.d.ts +2 -2
  179. package/dist/vite-plugin-astro-server/route.d.ts +2 -2
  180. package/dist/vite-plugin-astro-server/scripts.d.ts +2 -2
  181. package/dist/vite-plugin-astro-server/vite.d.ts +1 -1
  182. package/dist/vite-plugin-config-alias/index.d.ts +1 -1
  183. package/dist/vite-plugin-env/index.d.ts +1 -1
  184. package/dist/vite-plugin-inject-env-ts/index.d.ts +1 -1
  185. package/dist/vite-plugin-load-fallback/index.d.ts +1 -1
  186. package/dist/vite-plugin-markdown/index.d.ts +1 -1
  187. package/dist/vite-plugin-markdown/index.js +20 -20
  188. package/dist/vite-plugin-mdx/index.d.ts +1 -1
  189. package/dist/vite-plugin-utils/index.d.ts +1 -1
  190. package/package.json +4 -2
  191. package/types.d.ts +6 -1
  192. package/dist/assets/vendor/image-size/detector.d.ts +0 -3
  193. package/dist/assets/vendor/image-size/detector.js +0 -28
  194. package/dist/assets/vendor/image-size/index.d.ts +0 -11
  195. package/dist/assets/vendor/image-size/index.js +0 -93
  196. package/dist/assets/vendor/image-size/readUInt.d.ts +0 -4
  197. package/dist/assets/vendor/image-size/readUInt.js +0 -9
  198. package/dist/assets/vendor/image-size/types/bmp.d.ts +0 -2
  199. package/dist/assets/vendor/image-size/types/bmp.js +0 -14
  200. package/dist/assets/vendor/image-size/types/cur.d.ts +0 -2
  201. package/dist/assets/vendor/image-size/types/cur.js +0 -16
  202. package/dist/assets/vendor/image-size/types/dds.d.ts +0 -2
  203. package/dist/assets/vendor/image-size/types/dds.js +0 -14
  204. package/dist/assets/vendor/image-size/types/gif.d.ts +0 -2
  205. package/dist/assets/vendor/image-size/types/gif.js +0 -16
  206. package/dist/assets/vendor/image-size/types/icns.d.ts +0 -2
  207. package/dist/assets/vendor/image-size/types/icns.js +0 -87
  208. package/dist/assets/vendor/image-size/types/ico.d.ts +0 -2
  209. package/dist/assets/vendor/image-size/types/ico.js +0 -42
  210. package/dist/assets/vendor/image-size/types/interface.d.ts +0 -14
  211. package/dist/assets/vendor/image-size/types/interface.js +0 -0
  212. package/dist/assets/vendor/image-size/types/j2c.d.ts +0 -2
  213. package/dist/assets/vendor/image-size/types/j2c.js +0 -14
  214. package/dist/assets/vendor/image-size/types/jp2.d.ts +0 -2
  215. package/dist/assets/vendor/image-size/types/jp2.js +0 -56
  216. package/dist/assets/vendor/image-size/types/jpg.d.ts +0 -2
  217. package/dist/assets/vendor/image-size/types/jpg.js +0 -95
  218. package/dist/assets/vendor/image-size/types/ktx.d.ts +0 -2
  219. package/dist/assets/vendor/image-size/types/ktx.js +0 -15
  220. package/dist/assets/vendor/image-size/types/png.d.ts +0 -2
  221. package/dist/assets/vendor/image-size/types/png.js +0 -33
  222. package/dist/assets/vendor/image-size/types/pnm.d.ts +0 -2
  223. package/dist/assets/vendor/image-size/types/pnm.js +0 -72
  224. package/dist/assets/vendor/image-size/types/psd.d.ts +0 -2
  225. package/dist/assets/vendor/image-size/types/psd.js +0 -14
  226. package/dist/assets/vendor/image-size/types/svg.d.ts +0 -2
  227. package/dist/assets/vendor/image-size/types/svg.js +0 -91
  228. package/dist/assets/vendor/image-size/types/tiff.d.ts +0 -2
  229. package/dist/assets/vendor/image-size/types/tiff.js +0 -81
  230. package/dist/assets/vendor/image-size/types/webp.d.ts +0 -2
  231. package/dist/assets/vendor/image-size/types/webp.js +0 -51
  232. package/dist/assets/vendor/image-size/types.d.ts +0 -19
  233. package/dist/assets/vendor/image-size/types.js +0 -37
  234. package/dist/assets/vendor/queue/queue.d.ts +0 -39
  235. package/dist/assets/vendor/queue/queue.js +0 -187
@@ -1,17 +1,18 @@
1
1
  import parser from '@babel/parser';
2
+ import traverse from '@babel/traverse';
2
3
  import * as t from '@babel/types';
3
4
  export declare const visit: {
4
- <S>(parent: t.Node, opts: import("@babel/traverse").TraverseOptions<S>, scope: import("@babel/traverse").Scope | undefined, state: S, parentPath?: import("@babel/traverse").NodePath<t.Node> | undefined): void;
5
- (parent: t.Node, opts?: import("@babel/traverse").TraverseOptions<t.Node> | undefined, scope?: import("@babel/traverse").Scope | undefined, state?: any, parentPath?: import("@babel/traverse").NodePath<t.Node> | undefined): void;
6
- visitors: typeof import("@babel/traverse").visitors;
7
- verify: typeof import("@babel/traverse").visitors.verify;
8
- explode: typeof import("@babel/traverse").visitors.explode;
9
- cheap: (node: t.Node, enter: (node: t.Node) => void) => void;
10
- node: (node: t.Node, opts: import("@babel/traverse").TraverseOptions<t.Node>, scope?: import("@babel/traverse").Scope | undefined, state?: any, path?: import("@babel/traverse").NodePath<t.Node> | undefined, skipKeys?: Record<string, boolean> | undefined) => void;
11
- clearNode: (node: t.Node, opts?: t.RemovePropertiesOptions | undefined) => void;
12
- removeProperties: (tree: t.Node, opts?: t.RemovePropertiesOptions | undefined) => t.Node;
13
- hasType: (tree: t.Node, type: "CatchClause" | "ClassBody" | "Identifier" | "Program" | "SpreadElement" | "Super" | "SwitchCase" | "TemplateElement" | "VariableDeclarator" | "ArrayExpression" | "ArrowFunctionExpression" | "AssignmentExpression" | "AwaitExpression" | "BinaryExpression" | "CallExpression" | "ClassExpression" | "ConditionalExpression" | "FunctionExpression" | "LogicalExpression" | "MemberExpression" | "MetaProperty" | "NewExpression" | "ObjectExpression" | "SequenceExpression" | "TaggedTemplateExpression" | "TemplateLiteral" | "ThisExpression" | "UnaryExpression" | "UpdateExpression" | "YieldExpression" | "AnyTypeAnnotation" | "ArgumentPlaceholder" | "ArrayPattern" | "ArrayTypeAnnotation" | "AssignmentPattern" | "BigIntLiteral" | "BindExpression" | "BlockStatement" | "BooleanLiteral" | "BooleanLiteralTypeAnnotation" | "BooleanTypeAnnotation" | "BreakStatement" | "ClassAccessorProperty" | "ClassDeclaration" | "ClassImplements" | "ClassMethod" | "ClassPrivateMethod" | "ClassPrivateProperty" | "ClassProperty" | "ContinueStatement" | "DebuggerStatement" | "DecimalLiteral" | "DeclareClass" | "DeclareExportAllDeclaration" | "DeclareExportDeclaration" | "DeclareFunction" | "DeclareInterface" | "DeclareModule" | "DeclareModuleExports" | "DeclareOpaqueType" | "DeclareTypeAlias" | "DeclareVariable" | "DeclaredPredicate" | "Decorator" | "Directive" | "DirectiveLiteral" | "DoExpression" | "DoWhileStatement" | "EmptyStatement" | "EmptyTypeAnnotation" | "EnumBooleanBody" | "EnumBooleanMember" | "EnumDeclaration" | "EnumDefaultedMember" | "EnumNumberBody" | "EnumNumberMember" | "EnumStringBody" | "EnumStringMember" | "EnumSymbolBody" | "ExistsTypeAnnotation" | "ExportAllDeclaration" | "ExportDefaultDeclaration" | "ExportDefaultSpecifier" | "ExportNamedDeclaration" | "ExportNamespaceSpecifier" | "ExportSpecifier" | "ExpressionStatement" | "File" | "ForInStatement" | "ForOfStatement" | "ForStatement" | "FunctionDeclaration" | "FunctionTypeAnnotation" | "FunctionTypeParam" | "GenericTypeAnnotation" | "IfStatement" | "Import" | "ImportAttribute" | "ImportDeclaration" | "ImportDefaultSpecifier" | "ImportNamespaceSpecifier" | "ImportSpecifier" | "IndexedAccessType" | "InferredPredicate" | "InterfaceDeclaration" | "InterfaceExtends" | "InterfaceTypeAnnotation" | "InterpreterDirective" | "IntersectionTypeAnnotation" | "JSXAttribute" | "JSXClosingElement" | "JSXClosingFragment" | "JSXElement" | "JSXEmptyExpression" | "JSXExpressionContainer" | "JSXFragment" | "JSXIdentifier" | "JSXMemberExpression" | "JSXNamespacedName" | "JSXOpeningElement" | "JSXOpeningFragment" | "JSXSpreadAttribute" | "JSXSpreadChild" | "JSXText" | "LabeledStatement" | "MixedTypeAnnotation" | "ModuleExpression" | "Noop" | "NullLiteral" | "NullLiteralTypeAnnotation" | "NullableTypeAnnotation" | "NumberLiteral" | "NumberLiteralTypeAnnotation" | "NumberTypeAnnotation" | "NumericLiteral" | "ObjectMethod" | "ObjectPattern" | "ObjectProperty" | "ObjectTypeAnnotation" | "ObjectTypeCallProperty" | "ObjectTypeIndexer" | "ObjectTypeInternalSlot" | "ObjectTypeProperty" | "ObjectTypeSpreadProperty" | "OpaqueType" | "OptionalCallExpression" | "OptionalIndexedAccessType" | "OptionalMemberExpression" | "ParenthesizedExpression" | "PipelineBareFunction" | "PipelinePrimaryTopicReference" | "PipelineTopicExpression" | "Placeholder" | "PrivateName" | "QualifiedTypeIdentifier" | "RecordExpression" | "RegExpLiteral" | "RegexLiteral" | "RestElement" | "RestProperty" | "ReturnStatement" | "SpreadProperty" | "StaticBlock" | "StringLiteral" | "StringLiteralTypeAnnotation" | "StringTypeAnnotation" | "SwitchStatement" | "SymbolTypeAnnotation" | "TSAnyKeyword" | "TSArrayType" | "TSAsExpression" | "TSBigIntKeyword" | "TSBooleanKeyword" | "TSCallSignatureDeclaration" | "TSConditionalType" | "TSConstructSignatureDeclaration" | "TSConstructorType" | "TSDeclareFunction" | "TSDeclareMethod" | "TSEnumDeclaration" | "TSEnumMember" | "TSExportAssignment" | "TSExpressionWithTypeArguments" | "TSExternalModuleReference" | "TSFunctionType" | "TSImportEqualsDeclaration" | "TSImportType" | "TSIndexSignature" | "TSIndexedAccessType" | "TSInferType" | "TSInstantiationExpression" | "TSInterfaceBody" | "TSInterfaceDeclaration" | "TSIntersectionType" | "TSIntrinsicKeyword" | "TSLiteralType" | "TSMappedType" | "TSMethodSignature" | "TSModuleBlock" | "TSModuleDeclaration" | "TSNamedTupleMember" | "TSNamespaceExportDeclaration" | "TSNeverKeyword" | "TSNonNullExpression" | "TSNullKeyword" | "TSNumberKeyword" | "TSObjectKeyword" | "TSOptionalType" | "TSParameterProperty" | "TSParenthesizedType" | "TSPropertySignature" | "TSQualifiedName" | "TSRestType" | "TSSatisfiesExpression" | "TSStringKeyword" | "TSSymbolKeyword" | "TSThisType" | "TSTupleType" | "TSTypeAliasDeclaration" | "TSTypeAnnotation" | "TSTypeAssertion" | "TSTypeLiteral" | "TSTypeOperator" | "TSTypeParameter" | "TSTypeParameterDeclaration" | "TSTypeParameterInstantiation" | "TSTypePredicate" | "TSTypeQuery" | "TSTypeReference" | "TSUndefinedKeyword" | "TSUnionType" | "TSUnknownKeyword" | "TSVoidKeyword" | "ThisTypeAnnotation" | "ThrowStatement" | "TopicReference" | "TryStatement" | "TupleExpression" | "TupleTypeAnnotation" | "TypeAlias" | "TypeAnnotation" | "TypeCastExpression" | "TypeParameter" | "TypeParameterDeclaration" | "TypeParameterInstantiation" | "TypeofTypeAnnotation" | "UnionTypeAnnotation" | "V8IntrinsicIdentifier" | "VariableDeclaration" | "Variance" | "VoidTypeAnnotation" | "WhileStatement" | "WithStatement", denylistTypes?: string[] | undefined) => boolean;
14
- cache: typeof import("@babel/traverse").cache;
5
+ <S>(parent: traverse.Node, opts: traverse.TraverseOptions<S>, scope: traverse.Scope | undefined, state: S, parentPath?: traverse.NodePath<traverse.Node> | undefined): void;
6
+ (parent: traverse.Node, opts?: traverse.TraverseOptions<traverse.Node> | undefined, scope?: traverse.Scope | undefined, state?: any, parentPath?: traverse.NodePath<traverse.Node> | undefined): void;
7
+ visitors: typeof traverse.visitors;
8
+ verify: typeof traverse.visitors.verify;
9
+ explode: typeof traverse.visitors.explode;
10
+ cheap: (node: traverse.Node, enter: (node: traverse.Node) => void) => void;
11
+ node: (node: traverse.Node, opts: traverse.TraverseOptions<traverse.Node>, scope?: traverse.Scope | undefined, state?: any, path?: traverse.NodePath<traverse.Node> | undefined, skipKeys?: Record<string, boolean> | undefined) => void;
12
+ clearNode: (node: traverse.Node, opts?: traverse.RemovePropertiesOptions | undefined) => void;
13
+ removeProperties: (tree: traverse.Node, opts?: traverse.RemovePropertiesOptions | undefined) => traverse.Node;
14
+ hasType: (tree: traverse.Node, type: "CatchClause" | "ClassBody" | "Identifier" | "Program" | "SpreadElement" | "Super" | "SwitchCase" | "TemplateElement" | "VariableDeclarator" | "ArrayExpression" | "ArrowFunctionExpression" | "AssignmentExpression" | "AwaitExpression" | "BinaryExpression" | "CallExpression" | "ClassExpression" | "ConditionalExpression" | "FunctionExpression" | "LogicalExpression" | "MemberExpression" | "MetaProperty" | "NewExpression" | "ObjectExpression" | "SequenceExpression" | "TaggedTemplateExpression" | "TemplateLiteral" | "ThisExpression" | "UnaryExpression" | "UpdateExpression" | "YieldExpression" | "AnyTypeAnnotation" | "ArgumentPlaceholder" | "ArrayPattern" | "ArrayTypeAnnotation" | "AssignmentPattern" | "BigIntLiteral" | "BindExpression" | "BlockStatement" | "BooleanLiteral" | "BooleanLiteralTypeAnnotation" | "BooleanTypeAnnotation" | "BreakStatement" | "ClassAccessorProperty" | "ClassDeclaration" | "ClassImplements" | "ClassMethod" | "ClassPrivateMethod" | "ClassPrivateProperty" | "ClassProperty" | "ContinueStatement" | "DebuggerStatement" | "DecimalLiteral" | "DeclareClass" | "DeclareExportAllDeclaration" | "DeclareExportDeclaration" | "DeclareFunction" | "DeclareInterface" | "DeclareModule" | "DeclareModuleExports" | "DeclareOpaqueType" | "DeclareTypeAlias" | "DeclareVariable" | "DeclaredPredicate" | "Decorator" | "Directive" | "DirectiveLiteral" | "DoExpression" | "DoWhileStatement" | "EmptyStatement" | "EmptyTypeAnnotation" | "EnumBooleanBody" | "EnumBooleanMember" | "EnumDeclaration" | "EnumDefaultedMember" | "EnumNumberBody" | "EnumNumberMember" | "EnumStringBody" | "EnumStringMember" | "EnumSymbolBody" | "ExistsTypeAnnotation" | "ExportAllDeclaration" | "ExportDefaultDeclaration" | "ExportDefaultSpecifier" | "ExportNamedDeclaration" | "ExportNamespaceSpecifier" | "ExportSpecifier" | "ExpressionStatement" | "File" | "ForInStatement" | "ForOfStatement" | "ForStatement" | "FunctionDeclaration" | "FunctionTypeAnnotation" | "FunctionTypeParam" | "GenericTypeAnnotation" | "IfStatement" | "Import" | "ImportAttribute" | "ImportDeclaration" | "ImportDefaultSpecifier" | "ImportNamespaceSpecifier" | "ImportSpecifier" | "IndexedAccessType" | "InferredPredicate" | "InterfaceDeclaration" | "InterfaceExtends" | "InterfaceTypeAnnotation" | "InterpreterDirective" | "IntersectionTypeAnnotation" | "JSXAttribute" | "JSXClosingElement" | "JSXClosingFragment" | "JSXElement" | "JSXEmptyExpression" | "JSXExpressionContainer" | "JSXFragment" | "JSXIdentifier" | "JSXMemberExpression" | "JSXNamespacedName" | "JSXOpeningElement" | "JSXOpeningFragment" | "JSXSpreadAttribute" | "JSXSpreadChild" | "JSXText" | "LabeledStatement" | "MixedTypeAnnotation" | "ModuleExpression" | "Noop" | "NullLiteral" | "NullLiteralTypeAnnotation" | "NullableTypeAnnotation" | "NumberLiteral" | "NumberLiteralTypeAnnotation" | "NumberTypeAnnotation" | "NumericLiteral" | "ObjectMethod" | "ObjectPattern" | "ObjectProperty" | "ObjectTypeAnnotation" | "ObjectTypeCallProperty" | "ObjectTypeIndexer" | "ObjectTypeInternalSlot" | "ObjectTypeProperty" | "ObjectTypeSpreadProperty" | "OpaqueType" | "OptionalCallExpression" | "OptionalIndexedAccessType" | "OptionalMemberExpression" | "ParenthesizedExpression" | "PipelineBareFunction" | "PipelinePrimaryTopicReference" | "PipelineTopicExpression" | "Placeholder" | "PrivateName" | "QualifiedTypeIdentifier" | "RecordExpression" | "RegExpLiteral" | "RegexLiteral" | "RestElement" | "RestProperty" | "ReturnStatement" | "SpreadProperty" | "StaticBlock" | "StringLiteral" | "StringLiteralTypeAnnotation" | "StringTypeAnnotation" | "SwitchStatement" | "SymbolTypeAnnotation" | "TSAnyKeyword" | "TSArrayType" | "TSAsExpression" | "TSBigIntKeyword" | "TSBooleanKeyword" | "TSCallSignatureDeclaration" | "TSConditionalType" | "TSConstructSignatureDeclaration" | "TSConstructorType" | "TSDeclareFunction" | "TSDeclareMethod" | "TSEnumDeclaration" | "TSEnumMember" | "TSExportAssignment" | "TSExpressionWithTypeArguments" | "TSExternalModuleReference" | "TSFunctionType" | "TSImportEqualsDeclaration" | "TSImportType" | "TSIndexSignature" | "TSIndexedAccessType" | "TSInferType" | "TSInstantiationExpression" | "TSInterfaceBody" | "TSInterfaceDeclaration" | "TSIntersectionType" | "TSIntrinsicKeyword" | "TSLiteralType" | "TSMappedType" | "TSMethodSignature" | "TSModuleBlock" | "TSModuleDeclaration" | "TSNamedTupleMember" | "TSNamespaceExportDeclaration" | "TSNeverKeyword" | "TSNonNullExpression" | "TSNullKeyword" | "TSNumberKeyword" | "TSObjectKeyword" | "TSOptionalType" | "TSParameterProperty" | "TSParenthesizedType" | "TSPropertySignature" | "TSQualifiedName" | "TSRestType" | "TSSatisfiesExpression" | "TSStringKeyword" | "TSSymbolKeyword" | "TSThisType" | "TSTupleType" | "TSTypeAliasDeclaration" | "TSTypeAnnotation" | "TSTypeAssertion" | "TSTypeLiteral" | "TSTypeOperator" | "TSTypeParameter" | "TSTypeParameterDeclaration" | "TSTypeParameterInstantiation" | "TSTypePredicate" | "TSTypeQuery" | "TSTypeReference" | "TSUndefinedKeyword" | "TSUnionType" | "TSUnknownKeyword" | "TSVoidKeyword" | "ThisTypeAnnotation" | "ThrowStatement" | "TopicReference" | "TryStatement" | "TupleExpression" | "TupleTypeAnnotation" | "TypeAlias" | "TypeAnnotation" | "TypeCastExpression" | "TypeParameter" | "TypeParameterDeclaration" | "TypeParameterInstantiation" | "TypeofTypeAnnotation" | "UnionTypeAnnotation" | "V8IntrinsicIdentifier" | "VariableDeclaration" | "Variance" | "VoidTypeAnnotation" | "WhileStatement" | "WithStatement", denylistTypes?: string[] | undefined) => boolean;
15
+ cache: typeof traverse.cache;
15
16
  };
16
17
  export { t };
17
18
  export declare function generate(ast: t.File): Promise<string>;
@@ -1,5 +1,5 @@
1
1
  import type { UserConfig } from 'vite';
2
- import type { AstroUserConfig } from '../@types/astro';
2
+ import type { AstroUserConfig } from '../@types/astro.js';
3
3
  export declare function defineConfig(config: AstroUserConfig): AstroUserConfig;
4
4
  export declare function getViteConfig(inlineConfig: UserConfig): ({ mode, command }: {
5
5
  mode: string;
@@ -1,7 +1,7 @@
1
- /// <reference types="node" />
1
+ /// <reference types="node" resolution-mode="require"/>
2
2
  import type fsMod from 'node:fs';
3
3
  import type { Plugin } from 'vite';
4
- import type { AstroSettings } from '../@types/astro';
4
+ import type { AstroSettings } from '../@types/astro.js';
5
5
  import type { Logger } from '../core/logger/core.js';
6
6
  /**
7
7
  * Listen for Astro content directory changes and generate types.
@@ -1,4 +1,4 @@
1
- /// <reference types="node" />
1
+ /// <reference types="node" resolution-mode="require"/>
2
2
  import type fsMod from 'node:fs';
3
3
  import type { ViteDevServer } from 'vite';
4
4
  import type { AstroSettings } from '../@types/astro.js';
@@ -1,8 +1,8 @@
1
- /// <reference types="node" />
1
+ /// <reference types="node" resolution-mode="require"/>
2
2
  import type fsMod from 'node:fs';
3
3
  import { type ViteDevServer } from 'vite';
4
4
  import type { AstroSettings } from '../@types/astro.js';
5
- import type { Logger } from '../core/logger/core';
5
+ import type { Logger } from '../core/logger/core.js';
6
6
  import { type ContentObservable } from './utils.js';
7
7
  type ChokidarEvent = 'add' | 'addDir' | 'change' | 'unlink' | 'unlinkDir';
8
8
  type RawContentEvent = {
@@ -1,4 +1,4 @@
1
- /// <reference types="node" />
1
+ /// <reference types="node" resolution-mode="require"/>
2
2
  import matter from 'gray-matter';
3
3
  import fsMod from 'node:fs';
4
4
  import type { PluginContext } from 'rollup';
@@ -2,7 +2,7 @@ import type { Plugin } from 'vite';
2
2
  import type { AstroSettings } from '../@types/astro.js';
3
3
  import { type BuildInternals } from '../core/build/internal.js';
4
4
  import type { AstroBuildPlugin } from '../core/build/plugin.js';
5
- import type { StaticBuildOptions } from '../core/build/types';
5
+ import type { StaticBuildOptions } from '../core/build/types.js';
6
6
  export declare function astroContentAssetPropagationPlugin({ mode, settings, }: {
7
7
  mode: string;
8
8
  settings: AstroSettings;
@@ -1,4 +1,4 @@
1
- /// <reference types="node" />
1
+ /// <reference types="node" resolution-mode="require"/>
2
2
  import type fsMod from 'node:fs';
3
3
  import type { Plugin } from 'vite';
4
4
  import type { AstroSettings } from '../@types/astro.js';
@@ -1,4 +1,4 @@
1
- /// <reference types="node" />
1
+ /// <reference types="node" resolution-mode="require"/>
2
2
  import fsMod from 'node:fs';
3
3
  import type { Plugin } from 'vite';
4
4
  import type { AstroSettings, ContentEntryType } from '../@types/astro.js';
@@ -1,2 +1,2 @@
1
- import type { SerializedSSRManifest, SSRManifest } from './types';
1
+ import type { SerializedSSRManifest, SSRManifest } from './types.js';
2
2
  export declare function deserializeManifest(serializedManifest: SerializedSSRManifest): SSRManifest;
@@ -1,4 +1,4 @@
1
- import type { ManifestData, RouteData, SSRManifest } from '../../@types/astro';
1
+ import type { ManifestData, RouteData, SSRManifest } from '../../@types/astro.js';
2
2
  import { AstroIntegrationLogger } from '../logger/core.js';
3
3
  export { deserializeManifest } from './common.js';
4
4
  export interface MatchOptions {
@@ -1,6 +1,6 @@
1
- /// <reference types="node" />
2
- import type { RouteData } from '../../@types/astro';
3
- import type { SSRManifest } from './types';
1
+ /// <reference types="node" resolution-mode="require"/>
2
+ import type { RouteData } from '../../@types/astro.js';
3
+ import type { SSRManifest } from './types.js';
4
4
  import { IncomingMessage } from 'node:http';
5
5
  import { App, type MatchOptions } from './index.js';
6
6
  export { apply as applyPolyfills } from '../polyfill.js';
@@ -1,5 +1,5 @@
1
1
  import { Pipeline } from '../pipeline.js';
2
- import type { Environment } from '../render';
2
+ import type { Environment } from '../render/index.js';
3
3
  /**
4
4
  * Thrown when an endpoint contains a response with the header "X-Astro-Response" === 'Not-Found'
5
5
  */
@@ -1,5 +1,5 @@
1
- import type { RouteData, SerializedRouteData, SSRComponentMetadata, SSRLoadedRenderer, SSRResult } from '../../@types/astro';
2
- import type { SinglePageBuiltModule } from '../build/types';
1
+ import type { RouteData, SerializedRouteData, SSRComponentMetadata, SSRLoadedRenderer, SSRResult } from '../../@types/astro.js';
2
+ import type { SinglePageBuiltModule } from '../build/types.js';
3
3
  export type ComponentPath = string;
4
4
  export type StylesheetAsset = {
5
5
  type: 'inline';
@@ -1,9 +1,9 @@
1
- import type { AstroConfig, AstroSettings } from '../../@types/astro';
2
- import type { SSRManifest } from '../app/types';
1
+ import type { AstroConfig, AstroSettings } from '../../@types/astro.js';
2
+ import type { SSRManifest } from '../app/types.js';
3
3
  import { Logger } from '../logger/core.js';
4
4
  import { Pipeline } from '../pipeline.js';
5
- import type { BuildInternals } from './internal';
6
- import type { PageBuildData, StaticBuildOptions } from './types';
5
+ import type { BuildInternals } from './internal.js';
6
+ import type { PageBuildData, StaticBuildOptions } from './types.js';
7
7
  /**
8
8
  * This pipeline is responsible to gather the files emitted by the SSR build and generate the pages by executing these files.
9
9
  */
@@ -1,4 +1,4 @@
1
- import type { AstroConfig, RouteType } from '../../@types/astro';
1
+ import type { AstroConfig, RouteType } from '../../@types/astro.js';
2
2
  export declare function getOutFolder(astroConfig: AstroConfig, pathname: string, routeType: RouteType): URL;
3
3
  export declare function getOutFile(astroConfig: AstroConfig, outFolder: URL, pathname: string, routeType: RouteType): URL;
4
4
  /**
@@ -1,5 +1,5 @@
1
1
  import type { GetModuleInfo } from 'rollup';
2
- import type { AstroSettings } from '../../@types/astro';
2
+ import type { AstroSettings } from '../../@types/astro.js';
3
3
  export declare function shortHashedName(id: string, ctx: {
4
4
  getModuleInfo: GetModuleInfo;
5
5
  }): string;
@@ -1,7 +1,7 @@
1
1
  import type { OutputAsset, OutputChunk } from 'rollup';
2
- import type { AstroSettings, SSRLoadedRenderer, SSRManifest } from '../../@types/astro';
2
+ import type { AstroSettings, SSRLoadedRenderer, SSRManifest } from '../../@types/astro.js';
3
3
  import { type BuildInternals } from '../../core/build/internal.js';
4
- import type { StaticBuildOptions } from './types';
4
+ import type { StaticBuildOptions } from './types.js';
5
5
  export declare function rootRelativeFacadeId(facadeId: string, settings: AstroSettings): string;
6
6
  export declare function chunkIsPage(settings: AstroSettings, output: OutputAsset | OutputChunk, internals: BuildInternals): boolean;
7
7
  export declare function generatePages(opts: StaticBuildOptions, internals: BuildInternals): Promise<void>;
@@ -218,7 +218,7 @@ async function generatePage(pageData, ssrEntry, builtPaths, pipeline) {
218
218
  styles,
219
219
  mod: pageModule
220
220
  };
221
- const icon = pageData.route.type === "page" ? green("\u25B6") : magenta("\u03BB");
221
+ const icon = pageData.route.type === "page" || pageData.route.type === "redirect" ? green("\u25B6") : magenta("\u03BB");
222
222
  if (isRelativePath(pageData.route.component)) {
223
223
  logger.info(null, `${icon} ${pageData.route.route}`);
224
224
  } else {
@@ -1,4 +1,4 @@
1
- import type { AstroInlineConfig } from '../../@types/astro';
1
+ import type { AstroInlineConfig } from '../../@types/astro.js';
2
2
  export interface BuildOptions {
3
3
  /**
4
4
  * Teardown the compiler WASM instance after build. This can improve performance when
@@ -1,7 +1,7 @@
1
1
  import type { Rollup } from 'vite';
2
- import type { RouteData, SSRResult } from '../../@types/astro';
3
- import type { PageOptions } from '../../vite-plugin-astro/types';
4
- import type { PageBuildData, StylesheetAsset, ViteID } from './types';
2
+ import type { RouteData, SSRResult } from '../../@types/astro.js';
3
+ import type { PageOptions } from '../../vite-plugin-astro/types.js';
4
+ import type { PageBuildData, StylesheetAsset, ViteID } from './types.js';
5
5
  export interface BuildInternals {
6
6
  /**
7
7
  * Each CSS module is named with a chunk id derived from the Astro pages they
@@ -1,6 +1,6 @@
1
- import type { AstroSettings, ManifestData } from '../../@types/astro';
2
- import type { Logger } from '../logger/core';
3
- import type { AllPagesData } from './types';
1
+ import type { AstroSettings, ManifestData } from '../../@types/astro.js';
2
+ import type { Logger } from '../logger/core.js';
3
+ import type { AllPagesData } from './types.js';
4
4
  export interface CollectPagesDataOptions {
5
5
  settings: AstroSettings;
6
6
  logger: Logger;
@@ -1,6 +1,6 @@
1
1
  import type { Plugin as VitePlugin } from 'vite';
2
- import type { BuildInternals } from './internal';
3
- import type { StaticBuildOptions, ViteBuildReturn } from './types';
2
+ import type { BuildInternals } from './internal.js';
3
+ import type { StaticBuildOptions, ViteBuildReturn } from './types.js';
4
4
  type RollupOutputArray = Extract<ViteBuildReturn, Array<any>>;
5
5
  type OutputChunkorAsset = RollupOutputArray[number]['output'][number];
6
6
  type OutputChunk = Extract<OutputChunkorAsset, {
@@ -1,2 +1,2 @@
1
- import type { AstroBuildPluginContainer } from '../plugin';
1
+ import type { AstroBuildPluginContainer } from '../plugin.js';
2
2
  export declare function registerAllPlugins({ internals, options, register }: AstroBuildPluginContainer): void;
@@ -1,5 +1,5 @@
1
- import type { BuildInternals } from '../internal';
2
- import type { AstroBuildPlugin } from '../plugin';
3
- import type { StaticBuildOptions } from '../types';
1
+ import type { BuildInternals } from '../internal.js';
2
+ import type { AstroBuildPlugin } from '../plugin.js';
3
+ import type { StaticBuildOptions } from '../types.js';
4
4
  /***** ASTRO PLUGIN *****/
5
5
  export declare function pluginCSS(options: StaticBuildOptions, internals: BuildInternals): AstroBuildPlugin;
@@ -1,7 +1,7 @@
1
1
  import type { Plugin as VitePlugin } from 'vite';
2
- import type { AstroSettings } from '../../../@types/astro';
2
+ import type { AstroSettings } from '../../../@types/astro.js';
3
3
  import type { BuildInternals } from '../internal.js';
4
- import type { AstroBuildPlugin } from '../plugin';
5
- import type { StaticBuildOptions } from '../types';
4
+ import type { AstroBuildPlugin } from '../plugin.js';
5
+ import type { StaticBuildOptions } from '../types.js';
6
6
  export declare function vitePluginHoistedScripts(settings: AstroSettings, internals: BuildInternals): VitePlugin;
7
7
  export declare function pluginHoistedScripts(options: StaticBuildOptions, internals: BuildInternals): AstroBuildPlugin;
@@ -1,5 +1,5 @@
1
1
  import type { Plugin as VitePlugin } from 'vite';
2
2
  import type { BuildInternals } from '../internal.js';
3
- import type { AstroBuildPlugin } from '../plugin';
3
+ import type { AstroBuildPlugin } from '../plugin.js';
4
4
  export declare function vitePluginInternals(input: Set<string>, internals: BuildInternals): VitePlugin;
5
5
  export declare function pluginInternals(internals: BuildInternals): AstroBuildPlugin;
@@ -1,8 +1,8 @@
1
1
  import type { OutputChunk } from 'rollup';
2
- import type { SerializedSSRManifest } from '../../app/types';
2
+ import type { SerializedSSRManifest } from '../../app/types.js';
3
3
  import { type BuildInternals } from '../internal.js';
4
- import type { AstroBuildPlugin } from '../plugin';
5
- import type { StaticBuildOptions } from '../types';
4
+ import type { AstroBuildPlugin } from '../plugin.js';
5
+ import type { StaticBuildOptions } from '../types.js';
6
6
  export declare const SSR_MANIFEST_VIRTUAL_MODULE_ID = "@astrojs-manifest";
7
7
  export declare const RESOLVED_SSR_MANIFEST_VIRTUAL_MODULE_ID: string;
8
8
  export declare function pluginManifest(options: StaticBuildOptions, internals: BuildInternals): AstroBuildPlugin;
@@ -38,8 +38,8 @@ function vitePluginManifest(options, internals) {
38
38
  `import { deserializeManifest as _deserializeManifest } from 'astro/app'`,
39
39
  `import { _privateSetManifestDontUseThis } from 'astro:ssr-manifest'`
40
40
  );
41
- contents.push(`
42
- const manifest = _deserializeManifest('${manifestReplace}');
41
+ contents.push(`
42
+ const manifest = _deserializeManifest('${manifestReplace}');
43
43
  _privateSetManifestDontUseThis(manifest);
44
44
  `);
45
45
  exports.push("export { manifest }");
@@ -1,7 +1,7 @@
1
1
  import type { Plugin as VitePlugin } from 'vite';
2
- import type { BuildInternals } from '../internal';
3
- import type { AstroBuildPlugin } from '../plugin';
4
- import type { StaticBuildOptions } from '../types';
2
+ import type { BuildInternals } from '../internal.js';
3
+ import type { AstroBuildPlugin } from '../plugin.js';
4
+ import type { StaticBuildOptions } from '../types.js';
5
5
  export declare const MIDDLEWARE_MODULE_ID = "@astro-middleware";
6
6
  export declare function vitePluginMiddleware(opts: StaticBuildOptions, internals: BuildInternals): VitePlugin;
7
7
  export declare function pluginMiddleware(opts: StaticBuildOptions, internals: BuildInternals): AstroBuildPlugin;
@@ -1,7 +1,7 @@
1
- import type { AstroSettings } from '../../../@types/astro';
1
+ import type { AstroSettings } from '../../../@types/astro.js';
2
2
  import { type BuildInternals } from '../internal.js';
3
- import type { AstroBuildPlugin } from '../plugin';
4
- import type { StaticBuildOptions } from '../types';
3
+ import type { AstroBuildPlugin } from '../plugin.js';
4
+ import type { StaticBuildOptions } from '../types.js';
5
5
  export declare const ASTRO_PAGE_MODULE_ID = "@astro-page:";
6
6
  export declare const ASTRO_PAGE_RESOLVED_MODULE_ID: string;
7
7
  /**
@@ -1,4 +1,4 @@
1
1
  import type { BuildInternals } from '../internal.js';
2
2
  import type { AstroBuildPlugin } from '../plugin.js';
3
- import type { StaticBuildOptions } from '../types';
3
+ import type { StaticBuildOptions } from '../types.js';
4
4
  export declare function pluginPrerender(opts: StaticBuildOptions, internals: BuildInternals): AstroBuildPlugin;
@@ -1,6 +1,6 @@
1
1
  import type { Plugin as VitePlugin } from 'vite';
2
- import type { AstroBuildPlugin } from '../plugin';
3
- import type { StaticBuildOptions } from '../types';
2
+ import type { AstroBuildPlugin } from '../plugin.js';
3
+ import type { StaticBuildOptions } from '../types.js';
4
4
  export declare const RENDERERS_MODULE_ID = "@astro-renderers";
5
5
  export declare const RESOLVED_RENDERERS_MODULE_ID: string;
6
6
  export declare function vitePluginRenderers(opts: StaticBuildOptions): VitePlugin;
@@ -1,6 +1,6 @@
1
1
  import type { BuildInternals } from '../internal.js';
2
- import type { AstroBuildPlugin } from '../plugin';
3
- import type { StaticBuildOptions } from '../types';
2
+ import type { AstroBuildPlugin } from '../plugin.js';
3
+ import type { StaticBuildOptions } from '../types.js';
4
4
  export declare const SSR_VIRTUAL_MODULE_ID = "@astrojs-ssr-virtual-entry";
5
5
  export declare const RESOLVED_SSR_VIRTUAL_MODULE_ID: string;
6
6
  export declare function pluginSSR(options: StaticBuildOptions, internals: BuildInternals): AstroBuildPlugin;
@@ -190,8 +190,8 @@ function generateSSRCode(config, adapter) {
190
190
  pageMap = "pageMap";
191
191
  }
192
192
  contents.push(`import * as adapter from '${adapter.serverEntrypoint}';
193
- import { renderers } from '${RENDERERS_MODULE_ID}';
194
- import { manifest as defaultManifest} from '${SSR_MANIFEST_VIRTUAL_MODULE_ID}';
193
+ import { renderers } from '${RENDERERS_MODULE_ID}';
194
+ import { manifest as defaultManifest} from '${SSR_MANIFEST_VIRTUAL_MODULE_ID}';
195
195
  const _manifest = Object.assign(defaultManifest, {
196
196
  ${pageMap},
197
197
  renderers,
@@ -1,6 +1,6 @@
1
- import type { RouteData } from '../../@types/astro';
1
+ import type { RouteData } from '../../@types/astro.js';
2
2
  import { type BuildInternals } from '../../core/build/internal.js';
3
- import type { StaticBuildOptions } from './types';
3
+ import type { StaticBuildOptions } from './types.js';
4
4
  export declare function viteBuild(opts: StaticBuildOptions): Promise<{
5
5
  internals: BuildInternals;
6
6
  }>;
@@ -1,7 +1,8 @@
1
- import type { InlineConfig, default as vite } from 'vite';
2
- import type { AstroConfig, AstroSettings, ComponentInstance, ManifestData, MiddlewareHandler, RouteData, RuntimeMode, SSRLoadedRenderer } from '../../@types/astro';
3
- import type { Logger } from '../logger/core';
4
- import type { RouteCache } from '../render/route-cache';
1
+ import type * as vite from 'vite';
2
+ import type { InlineConfig } from 'vite';
3
+ import type { AstroConfig, AstroSettings, ComponentInstance, ManifestData, MiddlewareHandler, RouteData, RuntimeMode, SSRLoadedRenderer } from '../../@types/astro.js';
4
+ import type { Logger } from '../logger/core.js';
5
+ import type { RouteCache } from '../render/route-cache.js';
5
6
  export type ComponentPath = string;
6
7
  export type ViteID = string;
7
8
  export type PageOutput = AstroConfig['output'];
@@ -1,4 +1,4 @@
1
- import type { AstroConfig } from '../../@types/astro';
1
+ import type { AstroConfig } from '../../@types/astro.js';
2
2
  import { type CompileProps, type CompileResult } from './compile.js';
3
3
  export declare function isCached(config: AstroConfig, filename: string): boolean;
4
4
  export declare function getCachedCompileResult(config: AstroConfig, filename: string): CompileResult | null;
@@ -1,6 +1,6 @@
1
1
  import type { TransformResult } from '@astrojs/compiler';
2
2
  import type { ResolvedConfig } from 'vite';
3
- import type { AstroConfig } from '../../@types/astro';
3
+ import type { AstroConfig } from '../../@types/astro.js';
4
4
  export interface CompileProps {
5
5
  astroConfig: AstroConfig;
6
6
  viteConfig: ResolvedConfig;
@@ -1,3 +1,3 @@
1
1
  export { cachedCompilation, getCachedCompileResult, invalidateCompilation, isCached, } from './cache.js';
2
- export type { CompileProps, CompileResult } from './compile';
3
- export type { TransformStyle } from './types';
2
+ export type { CompileProps, CompileResult } from './compile.js';
3
+ export type { TransformStyle } from './types.js';
@@ -1,6 +1,6 @@
1
- /// <reference types="node" />
1
+ /// <reference types="node" resolution-mode="require"/>
2
2
  import type { Arguments as Flags } from 'yargs-parser';
3
- import type { AstroConfig, AstroInlineConfig, AstroUserConfig, CLIFlags } from '../../@types/astro';
3
+ import type { AstroConfig, AstroInlineConfig, AstroUserConfig, CLIFlags } from '../../@types/astro.js';
4
4
  import fs from 'node:fs';
5
5
  /** Turn raw config values into normalized values */
6
6
  export declare function validateConfig(userConfig: any, root: string, cmd: string): Promise<AstroConfig>;
@@ -1,6 +1,6 @@
1
1
  export { resolveConfig, resolveConfigPath, resolveFlags, resolveRoot } from './config.js';
2
2
  export { createNodeLogger } from './logging.js';
3
3
  export { mergeConfig } from './merge.js';
4
- export type { AstroConfigType } from './schema';
4
+ export type { AstroConfigType } from './schema.js';
5
5
  export { createSettings } from './settings.js';
6
6
  export { loadTSConfig, updateTSConfigForFramework } from './tsconfig.js';