Skip to main content

stylex_enums/
core.rs

1// Represents the current state of a plugin for a file.
2#[derive(Debug, PartialEq, Eq, Clone, Hash, Copy)]
3pub enum TransformationCycle {
4  // The plugin is being processed
5  TransformEnter,
6  // The plugin has been processed
7  TransformExit,
8  // The plugin has been processed and the file is being cleaned
9  PreCleaning,
10  // The file is being cleaned
11  Cleaning,
12  // Recounting variable links
13  Recounting,
14  // The file has been processed and the plugin is skipped
15  Initializing,
16  // Fill the state with expressions data before transformation
17  StateFilling,
18  // Skip the plugin if import does not exist
19  Skip,
20  // Inject styles metadata to the file
21  InjectStyles,
22}