@unocss/webpack 0.16.2 → 0.17.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
@@ -44,6 +44,7 @@ function getLayerPlaceholder(layer) {
44
44
  }
45
45
 
46
46
  const INCLUDE_COMMENT = "@unocss-include";
47
+ const CSS_PLACEHOLDER = "@unocss-placeholder";
47
48
 
48
49
  function createContext(configOrPath, defaults = {}, extraConfigSources = []) {
49
50
  const loadConfig = config.createConfigLoader(configOrPath, extraConfigSources);
@@ -77,7 +78,7 @@ function createContext(configOrPath, defaults = {}, extraConfigSources = []) {
77
78
  invalidate();
78
79
  }
79
80
  const filter = (code, id) => {
80
- return code.includes(INCLUDE_COMMENT) || rollupFilter(id);
81
+ return code.includes(INCLUDE_COMMENT) || code.includes(CSS_PLACEHOLDER) || rollupFilter(id);
81
82
  };
82
83
  async function getConfig() {
83
84
  await ready;
package/dist/index.mjs CHANGED
@@ -36,6 +36,7 @@ function getLayerPlaceholder(layer) {
36
36
  }
37
37
 
38
38
  const INCLUDE_COMMENT = "@unocss-include";
39
+ const CSS_PLACEHOLDER = "@unocss-placeholder";
39
40
 
40
41
  function createContext(configOrPath, defaults = {}, extraConfigSources = []) {
41
42
  const loadConfig = createConfigLoader(configOrPath, extraConfigSources);
@@ -69,7 +70,7 @@ function createContext(configOrPath, defaults = {}, extraConfigSources = []) {
69
70
  invalidate();
70
71
  }
71
72
  const filter = (code, id) => {
72
- return code.includes(INCLUDE_COMMENT) || rollupFilter(id);
73
+ return code.includes(INCLUDE_COMMENT) || code.includes(CSS_PLACEHOLDER) || rollupFilter(id);
73
74
  };
74
75
  async function getConfig() {
75
76
  await ready;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unocss/webpack",
3
- "version": "0.16.2",
3
+ "version": "0.17.3",
4
4
  "description": "The Webpack plugin for UnoCSS",
5
5
  "keywords": [
6
6
  "unocss",
@@ -33,9 +33,9 @@
33
33
  "dist"
34
34
  ],
35
35
  "dependencies": {
36
- "@rollup/pluginutils": "^4.1.1",
37
- "@unocss/config": "0.16.2",
38
- "@unocss/core": "0.16.2",
36
+ "@rollup/pluginutils": "^4.1.2",
37
+ "@unocss/config": "0.17.3",
38
+ "@unocss/core": "0.17.3",
39
39
  "unplugin": "^0.2.21",
40
40
  "webpack-sources": "^3.2.2"
41
41
  },