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.
Parameters
Section titled “Parameters”options
Section titled “options”Default config plus artifact, module-entry, and plugin loaders.
Returns
Section titled “Returns”Promise<{ entry: () => Promise<Record<string, unknown>>; plugins: unknown[]; } | object[]>
A webpack config or config array augmented with Typia support.
Remarks
Section titled “Remarks”This helper keeps emitted validator assets and script-module manifests aligned with the generated scaffold runtime without rewriting the caller’s config by hand.
Example
Section titled “Example”const config = await createTypiaWebpackConfig({ defaultConfig, fs, getArtifactEntries, importTypiaWebpackPlugin, path,});