tailwindcss-injector 1.0.27 → 1.0.28

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/postcss.cjs CHANGED
@@ -1,4 +1,4 @@
1
- //#region \0rolldown/runtime.js
1
+ // \0rolldown/runtime.js
2
2
  var __create = Object.create;
3
3
  var __defProp = Object.defineProperty;
4
4
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
@@ -19,7 +19,6 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
19
19
  value: mod,
20
20
  enumerable: true
21
21
  }) : target, mod));
22
- //#endregion
23
22
  let _weapp_tailwindcss_postcss = require("@weapp-tailwindcss/postcss");
24
23
  let node_process = require("node:process");
25
24
  node_process = __toESM(node_process, 1);
@@ -32,7 +31,7 @@ let magic_string = require("magic-string");
32
31
  magic_string = __toESM(magic_string, 1);
33
32
  let _weapp_tailwindcss_shared = require("@weapp-tailwindcss/shared");
34
33
  let _weapp_tailwindcss_shared_node = require("@weapp-tailwindcss/shared/node");
35
- //#region src/config.ts
34
+ // src/config.ts
36
35
  function getDefaultConfig() {
37
36
  return {
38
37
  filter: () => true,
@@ -51,11 +50,9 @@ function getDefaultConfig() {
51
50
  function getConfig(options) {
52
51
  return (0, _weapp_tailwindcss_shared.defuOverrideArray)(options, getDefaultConfig());
53
52
  }
54
- //#endregion
55
- //#region src/constants.ts
53
+ // src/constants.ts
56
54
  const postcssPlugin = "postcss-tailwindcss-injector";
57
- //#endregion
58
- //#region src/wxml.ts
55
+ // src/wxml.ts
59
56
  const hashMap = /* @__PURE__ */ new Map();
60
57
  const depsMap = /* @__PURE__ */ new Map();
61
58
  const srcImportTagsMap = {
@@ -125,8 +122,7 @@ async function getDepFiles(file) {
125
122
  await getDep(file, set);
126
123
  return set;
127
124
  }
128
- //#endregion
129
- //#region src/postcss.ts
125
+ // src/postcss.ts
130
126
  const creator = (options) => {
131
127
  const { filter, directiveParams, insertAfterAtRulesNames, insertAfterComments } = getConfig(options);
132
128
  return {
@@ -155,5 +151,4 @@ const creator = (options) => {
155
151
  };
156
152
  };
157
153
  creator.postcss = true;
158
- //#endregion
159
154
  module.exports = creator;
package/dist/postcss.d.ts CHANGED
@@ -1,6 +1,5 @@
1
1
  import { PluginCreator, postcss } from "@weapp-tailwindcss/postcss";
2
2
  import { Config } from "tailwindcss";
3
- //#region src/types.d.ts
4
3
  type InlineTailwindcssOptions = string | Partial<Config> | undefined;
5
4
  interface Options {
6
5
  cwd: string;
@@ -11,8 +10,5 @@ interface Options {
11
10
  insertAfterAtRulesNames: string[];
12
11
  insertAfterComments: (string | RegExp)[];
13
12
  }
14
- //#endregion
15
- //#region src/postcss.d.ts
16
13
  declare const creator: PluginCreator<Partial<Options>>;
17
- //#endregion
18
14
  export { type Options, creator as default };
package/dist/postcss.js CHANGED
@@ -6,7 +6,7 @@ import path from "node:path";
6
6
  import fs from "fs-extra";
7
7
  import { Parser } from "htmlparser2";
8
8
  import MagicString from "magic-string";
9
- //#region src/config.ts
9
+ // src/config.ts
10
10
  function getDefaultConfig() {
11
11
  return {
12
12
  filter: () => true,
@@ -25,11 +25,9 @@ function getDefaultConfig() {
25
25
  function getConfig(options) {
26
26
  return defuOverrideArray(options, getDefaultConfig());
27
27
  }
28
- //#endregion
29
- //#region src/constants.ts
28
+ // src/constants.ts
30
29
  const postcssPlugin = "postcss-tailwindcss-injector";
31
- //#endregion
32
- //#region src/wxml.ts
30
+ // src/wxml.ts
33
31
  const hashMap = /* @__PURE__ */ new Map();
34
32
  const depsMap = /* @__PURE__ */ new Map();
35
33
  const srcImportTagsMap = {
@@ -99,8 +97,7 @@ async function getDepFiles(file) {
99
97
  await getDep(file, set);
100
98
  return set;
101
99
  }
102
- //#endregion
103
- //#region src/postcss.ts
100
+ // src/postcss.ts
104
101
  const creator = (options) => {
105
102
  const { filter, directiveParams, insertAfterAtRulesNames, insertAfterComments } = getConfig(options);
106
103
  return {
@@ -129,5 +126,4 @@ const creator = (options) => {
129
126
  };
130
127
  };
131
128
  creator.postcss = true;
132
- //#endregion
133
129
  export { creator as default };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "tailwindcss-injector",
3
3
  "type": "module",
4
- "version": "1.0.27",
4
+ "version": "1.0.28",
5
5
  "description": "Tailwind CSS generation and source injection helpers for cross-platform builds. 跨端构建的 Tailwind CSS 生成与源码注入工具。",
6
6
  "author": "ice breaker <1324318532@qq.com>",
7
7
  "license": "MIT",
@@ -35,13 +35,13 @@
35
35
  "node": "^20.19.0 || >=22.12.0"
36
36
  },
37
37
  "dependencies": {
38
- "@weapp-tailwindcss/postcss": "3.4.3",
38
+ "@weapp-tailwindcss/postcss": "4.0.0",
39
39
  "@weapp-tailwindcss/shared": "2.0.4",
40
40
  "fs-extra": "^11.4.1",
41
41
  "htmlparser2": "^12.0.0",
42
- "magic-string": "^1.4.3",
43
- "tailwindcss": "^4.3.3",
44
- "tailwindcss-config": "2.0.6"
42
+ "magic-string": "^1.4.5",
43
+ "tailwindcss": "^4.3.4",
44
+ "tailwindcss-config": "2.0.7"
45
45
  },
46
46
  "scripts": {
47
47
  "dev": "tsdown --watch --sourcemap",