@unocss/vite 0.54.0 → 0.54.2
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 +4 -2
- package/dist/index.mjs +3 -2
- package/package.json +10 -10
package/dist/index.cjs
CHANGED
|
@@ -4,6 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const UnocssInspector = require('@unocss/inspector');
|
|
6
6
|
const core = require('@unocss/core');
|
|
7
|
+
const process$1 = require('node:process');
|
|
7
8
|
const pluginutils = require('@rollup/pluginutils');
|
|
8
9
|
const config = require('@unocss/config');
|
|
9
10
|
const node_crypto = require('node:crypto');
|
|
@@ -19,6 +20,7 @@ const node_url = require('node:url');
|
|
|
19
20
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e["default"] : e; }
|
|
20
21
|
|
|
21
22
|
const UnocssInspector__default = /*#__PURE__*/_interopDefaultLegacy(UnocssInspector);
|
|
23
|
+
const process__default = /*#__PURE__*/_interopDefaultLegacy(process$1);
|
|
22
24
|
const MagicString__default = /*#__PURE__*/_interopDefaultLegacy(MagicString);
|
|
23
25
|
const fs__default = /*#__PURE__*/_interopDefaultLegacy(fs);
|
|
24
26
|
const fg__default = /*#__PURE__*/_interopDefaultLegacy(fg);
|
|
@@ -85,7 +87,7 @@ function deprecationCheck(config) {
|
|
|
85
87
|
|
|
86
88
|
function createContext(configOrPath, defaults = {}, extraConfigSources = [], resolveConfigResult = () => {
|
|
87
89
|
}) {
|
|
88
|
-
let root =
|
|
90
|
+
let root = process__default.cwd();
|
|
89
91
|
let rawConfig = {};
|
|
90
92
|
let configFileList = [];
|
|
91
93
|
const uno = core.createGenerator(rawConfig, defaults);
|
|
@@ -663,7 +665,7 @@ function GlobalModeDevPlugin({ uno, tokens, tasks, flushTasks, affectedModules,
|
|
|
663
665
|
function setWarnTimer() {
|
|
664
666
|
if (!resolved && !resolvedWarnTimer) {
|
|
665
667
|
resolvedWarnTimer = setTimeout(() => {
|
|
666
|
-
if (
|
|
668
|
+
if (process__default.env.TEST || process__default.env.NODE_ENV === "test")
|
|
667
669
|
return;
|
|
668
670
|
if (!resolved) {
|
|
669
671
|
const msg = "[unocss] entry module not found, have you add `import 'uno.css'` in your main entry?";
|
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import UnocssInspector from '@unocss/inspector';
|
|
2
2
|
import { cssIdRE, createGenerator, BetterMap, notNull, toEscapedSelector } from '@unocss/core';
|
|
3
|
+
import process$1 from 'node:process';
|
|
3
4
|
import { createFilter } from '@rollup/pluginutils';
|
|
4
5
|
import { loadConfig } from '@unocss/config';
|
|
5
6
|
import { createHash } from 'node:crypto';
|
|
@@ -72,7 +73,7 @@ function deprecationCheck(config) {
|
|
|
72
73
|
|
|
73
74
|
function createContext(configOrPath, defaults = {}, extraConfigSources = [], resolveConfigResult = () => {
|
|
74
75
|
}) {
|
|
75
|
-
let root = process.cwd();
|
|
76
|
+
let root = process$1.cwd();
|
|
76
77
|
let rawConfig = {};
|
|
77
78
|
let configFileList = [];
|
|
78
79
|
const uno = createGenerator(rawConfig, defaults);
|
|
@@ -650,7 +651,7 @@ function GlobalModeDevPlugin({ uno, tokens, tasks, flushTasks, affectedModules,
|
|
|
650
651
|
function setWarnTimer() {
|
|
651
652
|
if (!resolved && !resolvedWarnTimer) {
|
|
652
653
|
resolvedWarnTimer = setTimeout(() => {
|
|
653
|
-
if (process.env.TEST || process.env.NODE_ENV === "test")
|
|
654
|
+
if (process$1.env.TEST || process$1.env.NODE_ENV === "test")
|
|
654
655
|
return;
|
|
655
656
|
if (!resolved) {
|
|
656
657
|
const msg = "[unocss] entry module not found, have you add `import 'uno.css'` in your main entry?";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unocss/vite",
|
|
3
|
-
"version": "0.54.
|
|
3
|
+
"version": "0.54.2",
|
|
4
4
|
"description": "The Vite plugin for UnoCSS",
|
|
5
5
|
"author": "Anthony Fu <anthonyfu117@hotmail.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -45,17 +45,17 @@
|
|
|
45
45
|
"@ampproject/remapping": "^2.2.1",
|
|
46
46
|
"@rollup/pluginutils": "^5.0.2",
|
|
47
47
|
"chokidar": "^3.5.3",
|
|
48
|
-
"fast-glob": "^3.3.
|
|
49
|
-
"magic-string": "^0.30.
|
|
50
|
-
"@unocss/config": "0.54.
|
|
51
|
-
"@unocss/core": "0.54.
|
|
52
|
-
"@unocss/inspector": "0.54.
|
|
53
|
-
"@unocss/scope": "0.54.
|
|
54
|
-
"@unocss/transformer-directives": "0.54.
|
|
48
|
+
"fast-glob": "^3.3.1",
|
|
49
|
+
"magic-string": "^0.30.2",
|
|
50
|
+
"@unocss/config": "0.54.2",
|
|
51
|
+
"@unocss/core": "0.54.2",
|
|
52
|
+
"@unocss/inspector": "0.54.2",
|
|
53
|
+
"@unocss/scope": "0.54.2",
|
|
54
|
+
"@unocss/transformer-directives": "0.54.2"
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|
|
57
|
-
"vite": "^4.4.
|
|
58
|
-
"@unocss/shared-integration": "0.54.
|
|
57
|
+
"vite": "^4.4.9",
|
|
58
|
+
"@unocss/shared-integration": "0.54.2"
|
|
59
59
|
},
|
|
60
60
|
"scripts": {
|
|
61
61
|
"build": "unbuild",
|