@unocss/webpack 0.31.10 → 0.31.14
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 +1 -2
- package/dist/index.mjs +2 -3
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -50,7 +50,6 @@ const CSS_PLACEHOLDER = "@unocss-placeholder";
|
|
|
50
50
|
function createContext(configOrPath, defaults = {}, extraConfigSources = [], resolveConfigResult = () => {
|
|
51
51
|
}) {
|
|
52
52
|
let root = process.cwd();
|
|
53
|
-
const loadConfig = config.createConfigLoader(configOrPath || root, extraConfigSources);
|
|
54
53
|
let rawConfig = {};
|
|
55
54
|
const uno = core.createGenerator(rawConfig, defaults);
|
|
56
55
|
let rollupFilter = pluginutils.createFilter(defaultInclude, defaultExclude);
|
|
@@ -59,7 +58,7 @@ function createContext(configOrPath, defaults = {}, extraConfigSources = [], res
|
|
|
59
58
|
const tokens = /* @__PURE__ */ new Set();
|
|
60
59
|
let ready = reloadConfig();
|
|
61
60
|
async function reloadConfig() {
|
|
62
|
-
const result = await loadConfig(configOrPath
|
|
61
|
+
const result = await config.loadConfig(root, configOrPath, extraConfigSources);
|
|
63
62
|
resolveConfigResult(result);
|
|
64
63
|
rawConfig = result.config;
|
|
65
64
|
uno.setConfig(rawConfig);
|
package/dist/index.mjs
CHANGED
|
@@ -2,7 +2,7 @@ import { createUnplugin } from 'unplugin';
|
|
|
2
2
|
import WebpackSources from 'webpack-sources';
|
|
3
3
|
import 'crypto';
|
|
4
4
|
import { createFilter } from '@rollup/pluginutils';
|
|
5
|
-
import {
|
|
5
|
+
import { loadConfig } from '@unocss/config';
|
|
6
6
|
import { createGenerator, BetterMap } from '@unocss/core';
|
|
7
7
|
|
|
8
8
|
function getPath(id) {
|
|
@@ -42,7 +42,6 @@ const CSS_PLACEHOLDER = "@unocss-placeholder";
|
|
|
42
42
|
function createContext(configOrPath, defaults = {}, extraConfigSources = [], resolveConfigResult = () => {
|
|
43
43
|
}) {
|
|
44
44
|
let root = process.cwd();
|
|
45
|
-
const loadConfig = createConfigLoader(configOrPath || root, extraConfigSources);
|
|
46
45
|
let rawConfig = {};
|
|
47
46
|
const uno = createGenerator(rawConfig, defaults);
|
|
48
47
|
let rollupFilter = createFilter(defaultInclude, defaultExclude);
|
|
@@ -51,7 +50,7 @@ function createContext(configOrPath, defaults = {}, extraConfigSources = [], res
|
|
|
51
50
|
const tokens = /* @__PURE__ */ new Set();
|
|
52
51
|
let ready = reloadConfig();
|
|
53
52
|
async function reloadConfig() {
|
|
54
|
-
const result = await loadConfig(configOrPath
|
|
53
|
+
const result = await loadConfig(root, configOrPath, extraConfigSources);
|
|
55
54
|
resolveConfigResult(result);
|
|
56
55
|
rawConfig = result.config;
|
|
57
56
|
uno.setConfig(rawConfig);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unocss/webpack",
|
|
3
|
-
"version": "0.31.
|
|
3
|
+
"version": "0.31.14",
|
|
4
4
|
"description": "The Webpack plugin for UnoCSS",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"unocss",
|
|
@@ -37,8 +37,8 @@
|
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"@rollup/pluginutils": "^4.2.1",
|
|
40
|
-
"@unocss/config": "0.31.
|
|
41
|
-
"@unocss/core": "0.31.
|
|
40
|
+
"@unocss/config": "0.31.14",
|
|
41
|
+
"@unocss/core": "0.31.14",
|
|
42
42
|
"unplugin": "^0.6.2",
|
|
43
43
|
"webpack-sources": "^3.2.3"
|
|
44
44
|
},
|