@modern-js/plugin-tailwindcss 2.58.3 → 2.60.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,4 +1,5 @@
1
1
  import { _ as _object_spread } from "@swc/helpers/_/_object_spread";
2
+ import { _ as _type_of } from "@swc/helpers/_/_type_of";
2
3
  import { createRuntimeExportsUtils, lazyImport } from "@modern-js/utils";
3
4
  var designTokenPlugin = function() {
4
5
  var pluginName = (arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {
@@ -31,7 +32,7 @@ var designTokenPlugin = function() {
31
32
  if (designSystem) {
32
33
  useSCThemeProvider = (designSystem === null || designSystem === void 0 ? void 0 : designSystem.supportStyledComponents) || false;
33
34
  }
34
- if (typeof designSystem === "object" && designSystem.supportStyledComponents) {
35
+ if ((typeof designSystem === "undefined" ? "undefined" : _type_of(designSystem)) === "object" && designSystem.supportStyledComponents) {
35
36
  var designTokens = getDesignTokens(userConfig.source.designSystem);
36
37
  plugins.push({
37
38
  name: PLUGIN_IDENTIFIER,
package/dist/esm/macro.js CHANGED
@@ -1,4 +1,5 @@
1
1
  import { _ as _async_to_generator } from "@swc/helpers/_/_async_to_generator";
2
+ import { _ as _type_of } from "@swc/helpers/_/_type_of";
2
3
  import { _ as _ts_generator } from "@swc/helpers/_/_ts_generator";
3
4
  import path from "path";
4
5
  import { fs, nanoid, slash } from "@modern-js/utils";
@@ -22,7 +23,7 @@ var checkTwinMacroExist = function() {
22
23
  packageJson = _state.sent() || {};
23
24
  return [
24
25
  2,
25
- Boolean(typeof packageJson.dependencies === "object" && packageJson.dependencies[TWIN_MACRO_NAME] || typeof packageJson.devDependencies === "object" && packageJson.devDependencies[TWIN_MACRO_NAME])
26
+ Boolean(_type_of(packageJson.dependencies) === "object" && packageJson.dependencies[TWIN_MACRO_NAME] || _type_of(packageJson.devDependencies) === "object" && packageJson.devDependencies[TWIN_MACRO_NAME])
26
27
  ];
27
28
  }
28
29
  });
package/package.json CHANGED
@@ -15,7 +15,7 @@
15
15
  "modern",
16
16
  "modern.js"
17
17
  ],
18
- "version": "2.58.3",
18
+ "version": "2.60.0",
19
19
  "jsnext:source": "./src/index.ts",
20
20
  "types": "./dist/types/index.d.ts",
21
21
  "main": "./dist/cjs/index.js",
@@ -47,11 +47,11 @@
47
47
  }
48
48
  },
49
49
  "dependencies": {
50
- "@swc/helpers": "0.5.3",
50
+ "@swc/helpers": "0.5.13",
51
51
  "babel-plugin-macros": "3.1.0",
52
- "@modern-js/runtime-utils": "2.58.3",
53
- "@modern-js/utils": "2.58.3",
54
- "@modern-js/node-bundle-require": "2.58.3"
52
+ "@modern-js/node-bundle-require": "2.60.0",
53
+ "@modern-js/utils": "2.60.0",
54
+ "@modern-js/runtime-utils": "2.60.0"
55
55
  },
56
56
  "devDependencies": {
57
57
  "@types/jest": "^29",
@@ -61,17 +61,17 @@
61
61
  "react": "^18",
62
62
  "tailwindcss": "^3.3.3",
63
63
  "typescript": "^5",
64
- "@modern-js/app-tools": "2.58.3",
65
- "@modern-js/core": "2.58.3",
66
- "@modern-js/types": "2.58.3",
67
- "@modern-js/runtime": "2.58.3",
68
- "@modern-js/module-tools": "2.58.3",
69
- "@scripts/build": "2.58.3",
70
- "@scripts/jest-config": "2.58.3"
64
+ "@modern-js/core": "2.60.0",
65
+ "@modern-js/app-tools": "2.60.0",
66
+ "@modern-js/runtime": "2.60.0",
67
+ "@modern-js/types": "2.60.0",
68
+ "@modern-js/module-tools": "2.60.0",
69
+ "@scripts/build": "2.60.0",
70
+ "@scripts/jest-config": "2.60.0"
71
71
  },
72
72
  "peerDependencies": {
73
73
  "tailwindcss": ">= 2.0.0 || >= 3.0.0",
74
- "@modern-js/runtime": "^2.58.3"
74
+ "@modern-js/runtime": "^2.60.0"
75
75
  },
76
76
  "peerDependenciesMeta": {
77
77
  "@modern-js/runtime": {