@unocss/webpack 0.63.4 → 0.63.6

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- const unplugin = require('./shared/webpack.DDjG3x9e.cjs');
3
+ const unplugin = require('./shared/webpack.LIicTvk4.cjs');
4
4
  require('node:path');
5
5
  require('node:process');
6
6
  require('unplugin');
package/dist/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { u as unplugin } from './shared/webpack.B0TbicgL.mjs';
1
+ import { u as unplugin } from './shared/webpack.C2x-HgJa.mjs';
2
2
  import 'node:path';
3
3
  import 'node:process';
4
4
  import 'unplugin';
package/dist/rspack.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- const unplugin = require('./shared/webpack.DDjG3x9e.cjs');
3
+ const unplugin = require('./shared/webpack.LIicTvk4.cjs');
4
4
  require('node:path');
5
5
  require('node:process');
6
6
  require('unplugin');
package/dist/rspack.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { u as unplugin } from './shared/webpack.B0TbicgL.mjs';
1
+ import { u as unplugin } from './shared/webpack.C2x-HgJa.mjs';
2
2
  import 'node:path';
3
3
  import 'node:process';
4
4
  import 'unplugin';
@@ -189,15 +189,6 @@ function createContext(configOrPath, defaults = {}, extraConfigSources = [], res
189
189
  await Promise.all(modules.map((code, id) => uno.applyExtractors(code.replace(SKIP_COMMENT_RE, ""), id, tokens)));
190
190
  invalidate();
191
191
  dispatchReload();
192
- const presets = /* @__PURE__ */ new Set();
193
- uno.config.presets.forEach((i) => {
194
- if (!i.name)
195
- return;
196
- if (presets.has(i.name))
197
- console.warn(`[unocss] duplication of preset ${i.name} found, there might be something wrong with your config.`);
198
- else
199
- presets.add(i.name);
200
- });
201
192
  return result;
202
193
  }
203
194
  async function updateRoot(newRoot) {
@@ -199,15 +199,6 @@ function createContext(configOrPath, defaults = {}, extraConfigSources = [], res
199
199
  await Promise.all(modules.map((code, id) => uno.applyExtractors(code.replace(SKIP_COMMENT_RE, ""), id, tokens)));
200
200
  invalidate();
201
201
  dispatchReload();
202
- const presets = /* @__PURE__ */ new Set();
203
- uno.config.presets.forEach((i) => {
204
- if (!i.name)
205
- return;
206
- if (presets.has(i.name))
207
- console.warn(`[unocss] duplication of preset ${i.name} found, there might be something wrong with your config.`);
208
- else
209
- presets.add(i.name);
210
- });
211
202
  return result;
212
203
  }
213
204
  async function updateRoot(newRoot) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@unocss/webpack",
3
3
  "type": "module",
4
- "version": "0.63.4",
4
+ "version": "0.63.6",
5
5
  "description": "The Webpack plugin for UnoCSS",
6
6
  "author": "Anthony Fu <anthonyfu117@hotmail.com>",
7
7
  "license": "MIT",
@@ -59,8 +59,8 @@
59
59
  "tinyglobby": "^0.2.9",
60
60
  "unplugin": "^1.14.1",
61
61
  "webpack-sources": "^3.2.3",
62
- "@unocss/config": "0.63.4",
63
- "@unocss/core": "0.63.4"
62
+ "@unocss/config": "0.63.6",
63
+ "@unocss/core": "0.63.6"
64
64
  },
65
65
  "devDependencies": {
66
66
  "@types/webpack": "^5.28.5",