Skip to content

getParcelConfigFiles

Generates the files of the parcel configuration the build runs with.

The build features add pipelines that run the toolkit’s shared transforms, through one generated transformer that loads them from the toolkit: Solid’s .jsx / .tsx, Svelte’s .svelte / .svelte.ts / .svelte.js, .wasm, and with styles.postcss or styles.tailwind every stylesheet, in place of parcel’s own PostCSS step. React and Preact JSX is compiled here too, since parcel reads the JSX runtime from a tsconfig without following its extends, and with any framework every script has the framework’s compile-time constants replaced. Parcel compiles Vue with @parcel/transformer-vue and scopes *.module.css itself, so those need no pipeline here.

Import:

import { getParcelConfigFiles } from '@mnaoumov/obsidian-dev-toolkit/bundlers/parcel';

Signature:

function getParcelConfigFiles(params: GetParcelConfigFilesParams): Readonly<Record<string, string>>

Parameters:

Parameter Type Description
params GetParcelConfigFilesParams The GetParcelConfigFilesParams.

Returns: Readonly<Record<string, string>> — The files, by file name.


Links to this page: