Skip to content

getFeatureFileKind

Tells which shared transform a module of a rollup-family build goes through, by its id.

A virtual module (an id starting with \0) goes through none. A query is part of the match for a stylesheet, so a Vue component’s ?vue&type=style&lang.css block counts as one, and is cut off for the rest.

Import:

import { getFeatureFileKind } from '@mnaoumov/obsidian-dev-toolkit/bundlers/obsidian-plugin-features';

Signature:

function getFeatureFileKind(id: string): FeatureFileKind | undefined

Parameters:

Parameter Type Description
id string The module id.

Returns: FeatureFileKind | undefined — The kind of file, or undefined for a module no feature transforms.


Links to this page: