Skip to content

createTypiaWebpackConfig

createTypiaWebpackConfig(options): Promise<{ entry: () => Promise<Record<string, unknown>>; plugins: unknown[]; } | object[]>

Defined in: wp-typia-block-runtime/src/blocks-webpack.ts:302

Extend a WordPress webpack config with Typia-generated artifact handling.

TypiaWebpackConfigOptions

Default config plus artifact, module-entry, and plugin loaders.

Promise<{ entry: () => Promise<Record<string, unknown>>; plugins: unknown[]; } | object[]>

A webpack config or config array augmented with Typia support.

This helper keeps emitted validator assets and script-module manifests aligned with the generated scaffold runtime without rewriting the caller’s config by hand.

const config = await createTypiaWebpackConfig({
defaultConfig,
fs,
getArtifactEntries,
importTypiaWebpackPlugin,
path,
});