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
| Name | Type | Required | Description |
|---|---|---|---|
include | PalamedesFilterPattern | No | Files eligible for macro transformation: a glob, a RegExp, or an array of both. Relative globs resolve from projectRoot; RegExps test the absolutefile path. Default: /\.(tsx?|jsx?|mjs|mts)$/. |
exclude | PalamedesFilterPattern | No | Files excluded from macro transformation, with the same pattern rules asinclude. Default: /[/\\]node_modules[/\\]/. |
projectRoot | string | No | Project directory used for a relative configPath and relativeinclude/exclude globs. Relative values resolve from the currentworking directory. Default: process.cwd(). |
runtimeModule | string | No | Advanced override for the module imported for the runtime i18n getter. Default: "@palamedes/runtime". |
includeSourceMetadata | boolean | No | Include authored source messages as diagnostic source metadata. Defaults to false in every environment. Set to true for diagnosticmetadata when deployment skew makes authored source text useful. V2 runtime misses throw; this metadata never provides replacement output. |
catalogAssets | PalamedesRemixCatalogAssetRegistry | No | Optional catalog-delivery registry for executable locale fragments. |
Last updated: November 1, 2026