@unocss/webpack 0.65.0-beta.1 → 0.65.0-beta.3

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.CF0q25Jy.cjs');
3
+ const unplugin = require('./shared/webpack.Cncj5QVL.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.l7mUvDtg.mjs';
1
+ import { u as unplugin } from './shared/webpack.FgPx67GX.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.CF0q25Jy.cjs');
3
+ const unplugin = require('./shared/webpack.Cncj5QVL.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.l7mUvDtg.mjs';
1
+ import { u as unplugin } from './shared/webpack.FgPx67GX.mjs';
2
2
  import 'node:path';
3
3
  import 'node:process';
4
4
  import 'unplugin';
@@ -435,7 +435,7 @@ function unplugin(configOrPath, defaults) {
435
435
  return;
436
436
  lastTokenSize = tokens.size;
437
437
  Array.from(plugin.__vfsModules).forEach((id) => {
438
- let path = decodeURIComponent(id.slice(plugin.__virtualModulePrefix.length));
438
+ let path = decodeURIComponent(id.startsWith(plugin.__virtualModulePrefix) ? id.slice(plugin.__virtualModulePrefix.length) : id);
439
439
  path = normalizeAbsolutePath(path);
440
440
  const layer = resolveLayer(path);
441
441
  if (!layer)
@@ -425,7 +425,7 @@ function unplugin(configOrPath, defaults) {
425
425
  return;
426
426
  lastTokenSize = tokens.size;
427
427
  Array.from(plugin.__vfsModules).forEach((id) => {
428
- let path = decodeURIComponent(id.slice(plugin.__virtualModulePrefix.length));
428
+ let path = decodeURIComponent(id.startsWith(plugin.__virtualModulePrefix) ? id.slice(plugin.__virtualModulePrefix.length) : id);
429
429
  path = normalizeAbsolutePath(path);
430
430
  const layer = resolveLayer(path);
431
431
  if (!layer)
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@unocss/webpack",
3
3
  "type": "module",
4
- "version": "0.65.0-beta.1",
4
+ "version": "0.65.0-beta.3",
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.10",
60
60
  "unplugin": "^1.15.0",
61
61
  "webpack-sources": "^3.2.3",
62
- "@unocss/core": "0.65.0-beta.1",
63
- "@unocss/config": "0.65.0-beta.1"
62
+ "@unocss/config": "0.65.0-beta.3",
63
+ "@unocss/core": "0.65.0-beta.3"
64
64
  },
65
65
  "devDependencies": {
66
66
  "@types/webpack": "^5.28.5",