Skip to content

Remix: PalamedesRemixAssetLoaderOptions

Functions, types, and exports for Remix: PalamedesRemixAssetLoaderOptions.

Page outline

Options shared by Remix browser asset macro transforms.

import type { PalamedesRemixAssetLoaderOptions } from "@palamedes/remix"

type PalamedesRemixAssetLoaderOptions = Pick<PalamedesRemixRegisterOptions, "include" | "exclude" | "projectRoot" | "runtimeModule" | "includeSourceMetadata"> & {
    /** Optional catalog-delivery registry for executable locale fragments. */
    catalogAssets?: PalamedesRemixCatalogAssetRegistry;
};

Properties

NameTypeRequiredDescription
includePalamedesFilterPatternNoFiles eligible for macro transformation: a glob, a RegExp, or an array of
both. Relative globs resolve from projectRoot; RegExps test the absolute
file path. Default: /\.(tsx?|jsx?|mjs|mts)$/.
excludePalamedesFilterPatternNoFiles excluded from macro transformation, with the same pattern rules as
include. Default: /[/\\]node_modules[/\\]/.
projectRootstringNoProject directory used for a relative configPath and relative
include/exclude globs. Relative values resolve from the current
working directory. Default: process.cwd().
runtimeModulestringNoAdvanced override for the module imported for the runtime i18n getter. Default: "@palamedes/runtime".
includeSourceMetadatabooleanNoInclude authored source messages as diagnostic source metadata.
Defaults to false in every environment. Set to true for diagnostic
metadata when deployment skew makes authored source text useful.
V2 runtime misses throw; this metadata never provides replacement output.
catalogAssetsPalamedesRemixCatalogAssetRegistryNoOptional catalog-delivery registry for executable locale fragments.

Source entry on GitHub

Last updated: November 1, 2026