// @generated by protoc-gen-es-lite unknown with parameter "target=ts,ts_nocheck=false" // @generated from file github.com/s4wave/spacewave/bldr/web/bundler/bundler.proto (package bldr.web.bundler, syntax proto3) /* eslint-disable */ import type { MessageType } from '@aptre/protobuf-es-lite/message' import { createMessageType } from '@aptre/protobuf-es-lite/message' /** * WebEntrypoint is an entrypoint passed to a web bundler. * * @generated from message bldr.web.bundler.WebEntrypoint */ export interface WebEntrypoint { /** * InputPath is the input file path. */ inputPath?: string /** * OutputPath is the output file path, if any. */ outputPath?: string } export const WebEntrypoint: MessageType = /* @__PURE__ */ createMessageType( 'bldr.web.bundler.WebEntrypoint', () => [ [1, 'input_path', 9], [2, 'output_path', 9], ], ) /** * WebBundlerOutput contains a single web bundler output. * * EsbuildVarType_WEB_BUNDLER_OUTPUT * ViteVarType_WEB_BUNDLER_OUTPUT * * @generated from message bldr.web.bundler.WebBundlerOutput */ export interface WebBundlerOutput { /** * EntrypointHref is the url path to the script entrypoint. * * e.x: /p/plugin-id/script.js */ entrypointHref?: string /** * CssHref is the url path to the css bundle (if applicable). * * May be empty. * e.x: /p/plugin-id/script.css */ cssHref?: string } export const WebBundlerOutput: MessageType = /* @__PURE__ */ createMessageType( 'bldr.web.bundler.WebBundlerOutput', () => [ [1, 'entrypoint_href', 9], [2, 'css_href', 9], ], ) /** * WebPkgRefConfig configures a web pkg reference. * * @generated from message bldr.web.bundler.WebPkgRefConfig */ export interface WebPkgRefConfig { /** * Id is the identifier of the web pkg. * example: @aptre/flex-layout */ id?: string /** * Exclude indicates we should reference this web pkg but exclude it from this bundle. * This is useful if another plugin already provides this web pkg. */ exclude?: boolean /** * Imports is the list of imports to include in the web pkg bundle. * NOTE: this will be merged with any imports the code accesses. * NOTE: this is therefore optional. */ imports?: string[] /** * Entrypoints defines the subpath entry points to build for this web package. * * For project-local packages (resolved via tsconfig paths, not node_modules): * - If set, each entry declares a subpath export (e.g. ".", "./object"). * "." maps to the package root index file. * - If empty, defaults to a single "." entrypoint (package root index). * * For node_modules packages: * - If set, overrides the auto-detected exports from package.json. * - If empty, entry points are read from the package.json "exports" field. * Falls back to "main" or "." if no exports field is present. */ entrypoints?: WebPkgEntrypoint[] } export const WebPkgRefConfig: MessageType = /* @__PURE__ */ createMessageType( 'bldr.web.bundler.WebPkgRefConfig', () => [ [1, 'id', 9], [2, 'exclude', 8], [3, 'imports', 9, 1], [4, 'entrypoints', 11, 1, WebPkgEntrypoint.codec], ], ) /** * WebPkgEntrypoint configures a single entry point for a web package build. * * @generated from message bldr.web.bundler.WebPkgEntrypoint */ export interface WebPkgEntrypoint { /** * Path is the subpath export specifier relative to the package root. * * Examples: * "." - the package root (index.ts / index.js) * "./object" - a subpath directory or file (object/index.ts or object.ts) * "./hooks" - another subpath * * Follows Node.js subpath exports conventions. */ path?: string } export const WebPkgEntrypoint: MessageType = /* @__PURE__ */ createMessageType( 'bldr.web.bundler.WebPkgEntrypoint', () => [[1, 'path', 9]], )