@unocss/webpack 0.61.9 → 0.62.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.cjs +2 -3
- package/dist/index.mjs +2 -2
- package/package.json +5 -5
package/dist/index.cjs
CHANGED
|
@@ -10,7 +10,7 @@ const pluginutils = require('@rollup/pluginutils');
|
|
|
10
10
|
const config = require('@unocss/config');
|
|
11
11
|
const core = require('@unocss/core');
|
|
12
12
|
const fs = require('node:fs/promises');
|
|
13
|
-
const
|
|
13
|
+
const tinyglobby = require('tinyglobby');
|
|
14
14
|
const MagicString = require('magic-string');
|
|
15
15
|
const remapping = require('@ampproject/remapping');
|
|
16
16
|
const node_crypto = require('node:crypto');
|
|
@@ -20,7 +20,6 @@ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'defau
|
|
|
20
20
|
const process__default = /*#__PURE__*/_interopDefaultCompat(process$1);
|
|
21
21
|
const WebpackSources__default = /*#__PURE__*/_interopDefaultCompat(WebpackSources);
|
|
22
22
|
const fs__default = /*#__PURE__*/_interopDefaultCompat(fs);
|
|
23
|
-
const fg__default = /*#__PURE__*/_interopDefaultCompat(fg);
|
|
24
23
|
const MagicString__default = /*#__PURE__*/_interopDefaultCompat(MagicString);
|
|
25
24
|
const remapping__default = /*#__PURE__*/_interopDefaultCompat(remapping);
|
|
26
25
|
|
|
@@ -247,7 +246,7 @@ async function setupContentExtractor(ctx, shouldWatch = false) {
|
|
|
247
246
|
);
|
|
248
247
|
}
|
|
249
248
|
if (content?.filesystem) {
|
|
250
|
-
const files = await
|
|
249
|
+
const files = await tinyglobby.glob(content.filesystem, { cwd: root, expandDirectories: false });
|
|
251
250
|
async function extractFile(file) {
|
|
252
251
|
file = node_path.isAbsolute(file) ? file : node_path.resolve(root, file);
|
|
253
252
|
const code = await fs__default.readFile(file, "utf-8");
|
package/dist/index.mjs
CHANGED
|
@@ -6,7 +6,7 @@ import { createFilter } from '@rollup/pluginutils';
|
|
|
6
6
|
import { createRecoveryConfigLoader } from '@unocss/config';
|
|
7
7
|
import { cssIdRE, createGenerator, BetterMap } from '@unocss/core';
|
|
8
8
|
import fs from 'node:fs/promises';
|
|
9
|
-
import
|
|
9
|
+
import { glob } from 'tinyglobby';
|
|
10
10
|
import MagicString from 'magic-string';
|
|
11
11
|
import remapping from '@ampproject/remapping';
|
|
12
12
|
import { createHash } from 'node:crypto';
|
|
@@ -234,7 +234,7 @@ async function setupContentExtractor(ctx, shouldWatch = false) {
|
|
|
234
234
|
);
|
|
235
235
|
}
|
|
236
236
|
if (content?.filesystem) {
|
|
237
|
-
const files = await
|
|
237
|
+
const files = await glob(content.filesystem, { cwd: root, expandDirectories: false });
|
|
238
238
|
async function extractFile(file) {
|
|
239
239
|
file = isAbsolute(file) ? file : resolve(root, file);
|
|
240
240
|
const code = await fs.readFile(file, "utf-8");
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unocss/webpack",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.62.1",
|
|
5
5
|
"description": "The Webpack plugin for UnoCSS",
|
|
6
6
|
"author": "Anthony Fu <anthonyfu117@hotmail.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -45,12 +45,12 @@
|
|
|
45
45
|
"@ampproject/remapping": "^2.3.0",
|
|
46
46
|
"@rollup/pluginutils": "^5.1.0",
|
|
47
47
|
"chokidar": "^3.6.0",
|
|
48
|
-
"fast-glob": "^3.3.2",
|
|
49
48
|
"magic-string": "^0.30.11",
|
|
50
|
-
"
|
|
49
|
+
"tinyglobby": "^0.2.1",
|
|
50
|
+
"unplugin": "^1.12.1",
|
|
51
51
|
"webpack-sources": "^3.2.3",
|
|
52
|
-
"@unocss/config": "0.
|
|
53
|
-
"@unocss/core": "0.
|
|
52
|
+
"@unocss/config": "0.62.1",
|
|
53
|
+
"@unocss/core": "0.62.1"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
56
|
"@types/webpack": "^5.28.5",
|