@unocss/webpack 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
@@ -87,7 +87,7 @@ function createContext(configOrPath, defaults = {}, extraConfigSources = [], res
87
87
  const filter = (code, id) => {
88
88
  if (code.includes(IGNORE_COMMENT))
89
89
  return false;
90
- return code.includes(INCLUDE_COMMENT) || code.includes(CSS_PLACEHOLDER) || rollupFilter(id);
90
+ return code.includes(INCLUDE_COMMENT) || code.includes(CSS_PLACEHOLDER) || rollupFilter(id.replace(/\?v=\w+$/, ""));
91
91
  };
92
92
  async function getConfig() {
93
93
  await ready;
package/dist/index.mjs CHANGED
@@ -77,7 +77,7 @@ function createContext(configOrPath, defaults = {}, extraConfigSources = [], res
77
77
  const filter = (code, id) => {
78
78
  if (code.includes(IGNORE_COMMENT))
79
79
  return false;
80
- return code.includes(INCLUDE_COMMENT) || code.includes(CSS_PLACEHOLDER) || rollupFilter(id);
80
+ return code.includes(INCLUDE_COMMENT) || code.includes(CSS_PLACEHOLDER) || rollupFilter(id.replace(/\?v=\w+$/, ""));
81
81
  };
82
82
  async function getConfig() {
83
83
  await ready;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unocss/webpack",
3
- "version": "0.45.20",
3
+ "version": "0.45.21",
4
4
  "description": "The Webpack plugin for UnoCSS",
5
5
  "author": "Anthony Fu <anthonyfu117@hotmail.com>",
6
6
  "license": "MIT",
@@ -38,8 +38,8 @@
38
38
  "dependencies": {
39
39
  "@ampproject/remapping": "^2.2.0",
40
40
  "@rollup/pluginutils": "^4.2.1",
41
- "@unocss/config": "0.45.20",
42
- "@unocss/core": "0.45.20",
41
+ "@unocss/config": "0.45.21",
42
+ "@unocss/core": "0.45.21",
43
43
  "magic-string": "^0.26.3",
44
44
  "unplugin": "^0.9.5",
45
45
  "webpack-sources": "^3.2.3"