@unocss/core 66.5.9 → 66.5.10-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.mts CHANGED
@@ -811,6 +811,12 @@ interface UserOnlyOptions<Theme extends object = object> {
811
811
  legacy?: {
812
812
  renderModernChunks: boolean;
813
813
  };
814
+ /**
815
+ * Custom prefix for virtual modules
816
+ *
817
+ * @default '__uno'
818
+ */
819
+ virtualModulePrefix?: string;
814
820
  }
815
821
  /**
816
822
  * For unocss-cli config
@@ -859,6 +865,14 @@ interface UnocssPluginContext<Config extends UserConfig = UserConfig> {
859
865
  root: string;
860
866
  updateRoot: (root: string) => Promise<LoadConfigResult<Config>>;
861
867
  getConfigFileList: () => string[];
868
+ /**
869
+ * Get regexes to match virtual module ids
870
+ */
871
+ getVMPRegexes: () => Promise<{
872
+ prefix: string;
873
+ RESOLVED_ID_WITH_QUERY_RE: RegExp;
874
+ RESOLVED_ID_RE: RegExp;
875
+ }>;
862
876
  }
863
877
  interface SourceMap {
864
878
  file?: string;
package/dist/index.d.ts CHANGED
@@ -811,6 +811,12 @@ interface UserOnlyOptions<Theme extends object = object> {
811
811
  legacy?: {
812
812
  renderModernChunks: boolean;
813
813
  };
814
+ /**
815
+ * Custom prefix for virtual modules
816
+ *
817
+ * @default '__uno'
818
+ */
819
+ virtualModulePrefix?: string;
814
820
  }
815
821
  /**
816
822
  * For unocss-cli config
@@ -859,6 +865,14 @@ interface UnocssPluginContext<Config extends UserConfig = UserConfig> {
859
865
  root: string;
860
866
  updateRoot: (root: string) => Promise<LoadConfigResult<Config>>;
861
867
  getConfigFileList: () => string[];
868
+ /**
869
+ * Get regexes to match virtual module ids
870
+ */
871
+ getVMPRegexes: () => Promise<{
872
+ prefix: string;
873
+ RESOLVED_ID_WITH_QUERY_RE: RegExp;
874
+ RESOLVED_ID_RE: RegExp;
875
+ }>;
862
876
  }
863
877
  interface SourceMap {
864
878
  file?: string;
package/dist/index.mjs CHANGED
@@ -654,7 +654,7 @@ function definePreset(preset) {
654
654
  return preset;
655
655
  }
656
656
 
657
- const version = "66.5.9";
657
+ const version = "66.5.10-beta.1";
658
658
 
659
659
  const symbols = {
660
660
  shortcutsNoMerge: "$$symbol-shortcut-no-merge",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@unocss/core",
3
3
  "type": "module",
4
- "version": "66.5.9",
4
+ "version": "66.5.10-beta.1",
5
5
  "description": "The instant on-demand Atomic CSS engine.",
6
6
  "author": "Anthony Fu <anthonyfu117@hotmail.com>",
7
7
  "license": "MIT",