@unocss/webpack 0.53.6 → 0.54.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 +3 -1
- package/dist/index.mjs +2 -1
- package/package.json +7 -7
package/dist/index.cjs
CHANGED
|
@@ -4,6 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const unplugin = require('unplugin');
|
|
6
6
|
const WebpackSources = require('webpack-sources');
|
|
7
|
+
const process$1 = require('node:process');
|
|
7
8
|
const pluginutils = require('@rollup/pluginutils');
|
|
8
9
|
const config = require('@unocss/config');
|
|
9
10
|
const core = require('@unocss/core');
|
|
@@ -17,6 +18,7 @@ const node_crypto = require('node:crypto');
|
|
|
17
18
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e["default"] : e; }
|
|
18
19
|
|
|
19
20
|
const WebpackSources__default = /*#__PURE__*/_interopDefaultLegacy(WebpackSources);
|
|
21
|
+
const process__default = /*#__PURE__*/_interopDefaultLegacy(process$1);
|
|
20
22
|
const fs__default = /*#__PURE__*/_interopDefaultLegacy(fs);
|
|
21
23
|
const fg__default = /*#__PURE__*/_interopDefaultLegacy(fg);
|
|
22
24
|
const MagicString__default = /*#__PURE__*/_interopDefaultLegacy(MagicString);
|
|
@@ -52,7 +54,7 @@ function deprecationCheck(config) {
|
|
|
52
54
|
|
|
53
55
|
function createContext(configOrPath, defaults = {}, extraConfigSources = [], resolveConfigResult = () => {
|
|
54
56
|
}) {
|
|
55
|
-
let root =
|
|
57
|
+
let root = process__default.cwd();
|
|
56
58
|
let rawConfig = {};
|
|
57
59
|
let configFileList = [];
|
|
58
60
|
const uno = core.createGenerator(rawConfig, defaults);
|
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { createUnplugin } from 'unplugin';
|
|
2
2
|
import WebpackSources from 'webpack-sources';
|
|
3
|
+
import process$1 from 'node:process';
|
|
3
4
|
import { createFilter } from '@rollup/pluginutils';
|
|
4
5
|
import { loadConfig } from '@unocss/config';
|
|
5
6
|
import { cssIdRE, createGenerator, BetterMap } from '@unocss/core';
|
|
@@ -40,7 +41,7 @@ function deprecationCheck(config) {
|
|
|
40
41
|
|
|
41
42
|
function createContext(configOrPath, defaults = {}, extraConfigSources = [], resolveConfigResult = () => {
|
|
42
43
|
}) {
|
|
43
|
-
let root = process.cwd();
|
|
44
|
+
let root = process$1.cwd();
|
|
44
45
|
let rawConfig = {};
|
|
45
46
|
let configFileList = [];
|
|
46
47
|
const uno = createGenerator(rawConfig, defaults);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unocss/webpack",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.54.1",
|
|
4
4
|
"description": "The Webpack plugin for UnoCSS",
|
|
5
5
|
"author": "Anthony Fu <anthonyfu117@hotmail.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -39,17 +39,17 @@
|
|
|
39
39
|
"@ampproject/remapping": "^2.2.1",
|
|
40
40
|
"@rollup/pluginutils": "^5.0.2",
|
|
41
41
|
"chokidar": "^3.5.3",
|
|
42
|
-
"fast-glob": "^3.3.
|
|
43
|
-
"magic-string": "^0.30.
|
|
44
|
-
"unplugin": "^1.
|
|
42
|
+
"fast-glob": "^3.3.1",
|
|
43
|
+
"magic-string": "^0.30.2",
|
|
44
|
+
"unplugin": "^1.4.0",
|
|
45
45
|
"webpack-sources": "^3.2.3",
|
|
46
|
-
"@unocss/config": "0.
|
|
47
|
-
"@unocss/core": "0.
|
|
46
|
+
"@unocss/config": "0.54.1",
|
|
47
|
+
"@unocss/core": "0.54.1"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
50
|
"@types/webpack": "^5.28.1",
|
|
51
51
|
"@types/webpack-sources": "^3.2.0",
|
|
52
|
-
"webpack": "^5.88.
|
|
52
|
+
"webpack": "^5.88.2"
|
|
53
53
|
},
|
|
54
54
|
"scripts": {
|
|
55
55
|
"build": "unbuild",
|