@unocss/vite 0.61.9 → 0.62.0

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.
Files changed (2) hide show
  1. package/dist/index.mjs +2 -2
  2. package/package.json +9 -9
package/dist/index.mjs CHANGED
@@ -2,7 +2,7 @@ import process$1 from 'node:process';
2
2
  import UnocssInspector from '@unocss/inspector';
3
3
  import { resolve, isAbsolute, dirname } from 'node:path';
4
4
  import fs from 'node:fs/promises';
5
- import fg from 'fast-glob';
5
+ import { glob } from 'tinyglobby';
6
6
  import MagicString from 'magic-string';
7
7
  import remapping from '@ampproject/remapping';
8
8
  import { cssIdRE, createGenerator, BetterMap, notNull, toEscapedSelector } from '@unocss/core';
@@ -332,7 +332,7 @@ async function setupContentExtractor(ctx, shouldWatch = false) {
332
332
  );
333
333
  }
334
334
  if (content?.filesystem) {
335
- const files = await fg(content.filesystem, { cwd: root });
335
+ const files = await glob(content.filesystem, { cwd: root, expandDirectories: false });
336
336
  async function extractFile(file) {
337
337
  file = isAbsolute(file) ? file : resolve(root, file);
338
338
  const code = await fs.readFile(file, "utf-8");
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@unocss/vite",
3
3
  "type": "module",
4
- "version": "0.61.9",
4
+ "version": "0.62.0",
5
5
  "description": "The Vite plugin for UnoCSS",
6
6
  "author": "Anthony Fu <anthonyfu117@hotmail.com>",
7
7
  "license": "MIT",
@@ -52,17 +52,17 @@
52
52
  "@ampproject/remapping": "^2.3.0",
53
53
  "@rollup/pluginutils": "^5.1.0",
54
54
  "chokidar": "^3.6.0",
55
- "fast-glob": "^3.3.2",
56
55
  "magic-string": "^0.30.11",
57
- "@unocss/config": "0.61.9",
58
- "@unocss/inspector": "0.61.9",
59
- "@unocss/scope": "0.61.9",
60
- "@unocss/transformer-directives": "0.61.9",
61
- "@unocss/core": "0.61.9"
56
+ "tinyglobby": "^0.2.1",
57
+ "@unocss/config": "0.62.0",
58
+ "@unocss/inspector": "0.62.0",
59
+ "@unocss/core": "0.62.0",
60
+ "@unocss/transformer-directives": "0.62.0",
61
+ "@unocss/scope": "0.62.0"
62
62
  },
63
63
  "devDependencies": {
64
- "vite": "^5.3.5",
65
- "@unocss/shared-integration": "0.61.9"
64
+ "vite": "^5.4.0",
65
+ "@unocss/shared-integration": "0.62.0"
66
66
  },
67
67
  "scripts": {
68
68
  "build": "unbuild",