getWebpackFeatureRules
Builds the module rules the build features add, each running the toolkit’s own loader: Solid’s JSX before the project’s TypeScript loader, Svelte components and modules, .wasm modules as JavaScript, and with styles the stylesheet rule.
Import:
import { getWebpackFeatureRules } from '@mnaoumov/obsidian-dev-toolkit/bundlers/webpack';Signature:
function getWebpackFeatureRules(params: GetWebpackFeatureRulesParams): RuleSetRule[]Parameters:
| Parameter | Type | Description |
|---|---|---|
params |
GetWebpackFeatureRulesParams | The GetWebpackFeatureRulesParams. |
Returns: RuleSetRule[] — The rules, empty when no feature needs one.
Links to this page: