@unocss/vite 0.45.20 → 0.45.21

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
@@ -120,7 +120,7 @@ function createContext(configOrPath, defaults = {}, extraConfigSources = [], res
120
120
  const filter = (code, id) => {
121
121
  if (code.includes(IGNORE_COMMENT))
122
122
  return false;
123
- return code.includes(INCLUDE_COMMENT) || code.includes(CSS_PLACEHOLDER) || rollupFilter(id);
123
+ return code.includes(INCLUDE_COMMENT) || code.includes(CSS_PLACEHOLDER) || rollupFilter(id.replace(/\?v=\w+$/, ""));
124
124
  };
125
125
  async function getConfig() {
126
126
  await ready;
package/dist/index.mjs CHANGED
@@ -109,7 +109,7 @@ function createContext(configOrPath, defaults = {}, extraConfigSources = [], res
109
109
  const filter = (code, id) => {
110
110
  if (code.includes(IGNORE_COMMENT))
111
111
  return false;
112
- return code.includes(INCLUDE_COMMENT) || code.includes(CSS_PLACEHOLDER) || rollupFilter(id);
112
+ return code.includes(INCLUDE_COMMENT) || code.includes(CSS_PLACEHOLDER) || rollupFilter(id.replace(/\?v=\w+$/, ""));
113
113
  };
114
114
  async function getConfig() {
115
115
  await ready;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unocss/vite",
3
- "version": "0.45.20",
3
+ "version": "0.45.21",
4
4
  "description": "The Vite plugin for UnoCSS",
5
5
  "author": "Anthony Fu <anthonyfu117@hotmail.com>",
6
6
  "license": "MIT",
@@ -44,15 +44,15 @@
44
44
  "dependencies": {
45
45
  "@ampproject/remapping": "^2.2.0",
46
46
  "@rollup/pluginutils": "^4.2.1",
47
- "@unocss/config": "0.45.20",
48
- "@unocss/core": "0.45.20",
49
- "@unocss/inspector": "0.45.20",
50
- "@unocss/scope": "0.45.20",
51
- "@unocss/transformer-directives": "0.45.20",
47
+ "@unocss/config": "0.45.21",
48
+ "@unocss/core": "0.45.21",
49
+ "@unocss/inspector": "0.45.21",
50
+ "@unocss/scope": "0.45.21",
51
+ "@unocss/transformer-directives": "0.45.21",
52
52
  "magic-string": "^0.26.3"
53
53
  },
54
54
  "devDependencies": {
55
- "@unocss/shared-integration": "0.45.20",
55
+ "@unocss/shared-integration": "0.45.21",
56
56
  "vite": "^3.1.0"
57
57
  },
58
58
  "scripts": {