UNPKG

react-native-unistyles

Version:
20 lines (15 loc) 734 B
import type {Compiler,LoaderContext,RspackPluginInstance } from '@rspack/core' import type { UnistylesPluginOptions } from 'react-native-unistyles/plugin' export declare const BASE_REPACK_EXCLUDE_PATHS: Array<RegExp> interface ConstructorParams { ruleExcludePaths?: Array<RegExp> unistylesPluginOptions?: UnistylesPluginOptions } export declare class RepackUnistylePlugin implements RspackPluginInstance { private ruleExcludePaths private unistylesPluginOptions constructor({ ruleExcludePaths, unistylesPluginOptions }?: ConstructorParams) apply(compiler: Compiler): void } declare function unistylesLoader(this: LoaderContext<UnistylesLoaderOptions>, source: string): void; export default unistylesLoader