@farmfe/core
Version:
Farm is a extremely fast web build tool written in Rust. Farm can start a project in milliseconds and perform HMR within 10ms, making it much faster than similar tools like webpack and vite.
13 lines (12 loc) • 430 B
TypeScript
/**
* Hack plugin to transform css for Vite compatibility:
* 1. wrap the css code with `` before post plugins execute(priority 98)
* 2. unwrap the css code from `` after post plugins execute
*/
import { JsPlugin } from '../../type.js';
export declare function cssPluginWrap(options: {
filtersUnion: Set<string>;
}): JsPlugin;
export declare function cssPluginUnwrap(options: {
filtersUnion: Set<string>;
}): JsPlugin;