@unocss/vite 0.45.13 → 0.45.18

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.cjs CHANGED
@@ -58,6 +58,7 @@ function createContext(configOrPath, defaults = {}, extraConfigSources = [], res
58
58
  }) {
59
59
  let root = process.cwd();
60
60
  let rawConfig = {};
61
+ let configFileList = [];
61
62
  const uno = core.createGenerator(rawConfig, defaults);
62
63
  let rollupFilter = pluginutils.createFilter(defaultInclude, defaultExclude);
63
64
  const invalidations = [];
@@ -70,6 +71,7 @@ function createContext(configOrPath, defaults = {}, extraConfigSources = [], res
70
71
  const result = await config.loadConfig(root, configOrPath, extraConfigSources);
71
72
  resolveConfigResult(result);
72
73
  rawConfig = result.config;
74
+ configFileList = result.sources;
73
75
  uno.setConfig(rawConfig);
74
76
  uno.config.envMode = "dev";
75
77
  rollupFilter = pluginutils.createFilter(
@@ -141,7 +143,8 @@ function createContext(configOrPath, defaults = {}, extraConfigSources = [], res
141
143
  extract,
142
144
  getConfig,
143
145
  root,
144
- updateRoot
146
+ updateRoot,
147
+ getConfigFileList: () => configFileList
145
148
  };
146
149
  }
147
150
 
package/dist/index.mjs CHANGED
@@ -47,6 +47,7 @@ function createContext(configOrPath, defaults = {}, extraConfigSources = [], res
47
47
  }) {
48
48
  let root = process.cwd();
49
49
  let rawConfig = {};
50
+ let configFileList = [];
50
51
  const uno = createGenerator(rawConfig, defaults);
51
52
  let rollupFilter = createFilter(defaultInclude, defaultExclude);
52
53
  const invalidations = [];
@@ -59,6 +60,7 @@ function createContext(configOrPath, defaults = {}, extraConfigSources = [], res
59
60
  const result = await loadConfig(root, configOrPath, extraConfigSources);
60
61
  resolveConfigResult(result);
61
62
  rawConfig = result.config;
63
+ configFileList = result.sources;
62
64
  uno.setConfig(rawConfig);
63
65
  uno.config.envMode = "dev";
64
66
  rollupFilter = createFilter(
@@ -130,7 +132,8 @@ function createContext(configOrPath, defaults = {}, extraConfigSources = [], res
130
132
  extract,
131
133
  getConfig,
132
134
  root,
133
- updateRoot
135
+ updateRoot,
136
+ getConfigFileList: () => configFileList
134
137
  };
135
138
  }
136
139
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unocss/vite",
3
- "version": "0.45.13",
3
+ "version": "0.45.18",
4
4
  "description": "The Vite plugin for UnoCSS",
5
5
  "author": "Anthony Fu <anthonyfu117@hotmail.com>",
6
6
  "license": "MIT",
@@ -44,15 +44,15 @@
44
44
  "dependencies": {
45
45
  "@ampproject/remapping": "^2.2.0",
46
46
  "@rollup/pluginutils": "^4.2.1",
47
- "@unocss/config": "0.45.13",
48
- "@unocss/core": "0.45.13",
49
- "@unocss/inspector": "0.45.13",
50
- "@unocss/scope": "0.45.13",
51
- "@unocss/transformer-directives": "0.45.13",
47
+ "@unocss/config": "0.45.18",
48
+ "@unocss/core": "0.45.18",
49
+ "@unocss/inspector": "0.45.18",
50
+ "@unocss/scope": "0.45.18",
51
+ "@unocss/transformer-directives": "0.45.18",
52
52
  "magic-string": "^0.26.2"
53
53
  },
54
54
  "devDependencies": {
55
- "@unocss/shared-integration": "0.45.13",
55
+ "@unocss/shared-integration": "0.45.18",
56
56
  "vite": "^3.0.8"
57
57
  },
58
58
  "scripts": {