@modern-js/plugin-tailwindcss 2.17.1 → 2.18.1

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/CHANGELOG.md CHANGED
@@ -1,5 +1,23 @@
1
1
  # @modern-js/plugin-tailwindcss
2
2
 
3
+ ## 2.18.1
4
+
5
+ ### Patch Changes
6
+
7
+ - cdc9db1: fix(module-tools, plugin-tailwindcss): fix `style.tailwindcss` config name and merge logic
8
+ fix(module-tools, plugin-tailwindcss): 修复 `style.tailwindcss` 错误的配置名和合并逻辑
9
+ - Updated dependencies [8fb93d1]
10
+ - @modern-js/runtime@2.18.1
11
+ - @modern-js/utils@2.18.1
12
+
13
+ ## 2.18.0
14
+
15
+ ### Patch Changes
16
+
17
+ - Updated dependencies [7de6599]
18
+ - @modern-js/runtime@2.18.0
19
+ - @modern-js/utils@2.18.0
20
+
3
21
  ## 2.17.1
4
22
 
5
23
  ### Patch Changes
package/dist/cjs/cli.js CHANGED
@@ -125,7 +125,7 @@ const _default = ({ pluginName } = {
125
125
  beforeBuildTask(config) {
126
126
  const modernConfig = api.useResolvedConfigContext();
127
127
  const { designSystem } = modernConfig;
128
- const tailwindConfig = (0, _tailwind.getTailwindConfig)(tailwindVersion, config.style.tailwindCss, designSystem, {
128
+ const tailwindConfig = (0, _tailwind.getTailwindConfig)(tailwindVersion, config.style.tailwindcss, designSystem, {
129
129
  pureConfig: {
130
130
  content: defaultContent
131
131
  }
package/dist/esm/cli.js CHANGED
@@ -147,7 +147,7 @@ export default function() {
147
147
  // support designSystem.supportStyledComponents
148
148
  usePlugins: [
149
149
  designTokenPlugin({
150
- pluginName
150
+ pluginName: pluginName
151
151
  })
152
152
  ],
153
153
  setup: function() {
@@ -250,7 +250,7 @@ export default function() {
250
250
  beforeBuildTask: function beforeBuildTask(config) {
251
251
  var modernConfig = api.useResolvedConfigContext();
252
252
  var designSystem = modernConfig.designSystem;
253
- var tailwindConfig = getTailwindConfig(tailwindVersion, config.style.tailwindCss, designSystem, {
253
+ var tailwindConfig = getTailwindConfig(tailwindVersion, config.style.tailwindcss, designSystem, {
254
254
  pureConfig: {
255
255
  content: defaultContent
256
256
  }
@@ -1,7 +1,7 @@
1
1
  function _define_property(obj, key, value) {
2
2
  if (key in obj) {
3
3
  Object.defineProperty(obj, key, {
4
- value,
4
+ value: value,
5
5
  enumerable: true,
6
6
  configurable: true,
7
7
  writable: true
@@ -80,8 +80,8 @@ export default function() {
80
80
  });
81
81
  }
82
82
  return {
83
- entrypoint,
84
- imports
83
+ entrypoint: entrypoint,
84
+ imports: imports
85
85
  };
86
86
  },
87
87
  modifyEntryRuntimePlugins: function modifyEntryRuntimePlugins(param) {
@@ -101,8 +101,8 @@ export default function() {
101
101
  });
102
102
  }
103
103
  return {
104
- entrypoint,
105
- plugins
104
+ entrypoint: entrypoint,
105
+ plugins: plugins
106
106
  };
107
107
  },
108
108
  validateSchema: function validateSchema() {
@@ -1,7 +1,7 @@
1
1
  function _define_property(obj, key, value) {
2
2
  if (key in obj) {
3
3
  Object.defineProperty(obj, key, {
4
- value,
4
+ value: value,
5
5
  enumerable: true,
6
6
  configurable: true,
7
7
  writable: true
@@ -105,7 +105,7 @@ export default ({ pluginName } = {
105
105
  beforeBuildTask(config) {
106
106
  const modernConfig = api.useResolvedConfigContext();
107
107
  const { designSystem } = modernConfig;
108
- const tailwindConfig = getTailwindConfig(tailwindVersion, config.style.tailwindCss, designSystem, {
108
+ const tailwindConfig = getTailwindConfig(tailwindVersion, config.style.tailwindcss, designSystem, {
109
109
  pureConfig: {
110
110
  content: defaultContent
111
111
  }
package/package.json CHANGED
@@ -15,7 +15,7 @@
15
15
  "modern",
16
16
  "modern.js"
17
17
  ],
18
- "version": "2.17.1",
18
+ "version": "2.18.1",
19
19
  "jsnext:source": "./src/index.ts",
20
20
  "types": "./dist/types/index.d.ts",
21
21
  "main": "./dist/cjs/index.js",
@@ -49,7 +49,7 @@
49
49
  "@babel/runtime": "^7.18.0",
50
50
  "babel-plugin-macros": "3.1.0",
51
51
  "hoist-non-react-statics": "^3.3.2",
52
- "@modern-js/utils": "2.17.1"
52
+ "@modern-js/utils": "2.18.1"
53
53
  },
54
54
  "devDependencies": {
55
55
  "@types/jest": "^29",
@@ -59,17 +59,17 @@
59
59
  "jest": "^29",
60
60
  "react": "^18",
61
61
  "postcss": "8.4.21",
62
- "@modern-js/core": "2.17.1",
63
- "@modern-js/module-tools": "2.17.1",
64
- "@modern-js/runtime": "2.17.1",
65
- "@modern-js/types": "2.17.1",
66
- "@scripts/build": "2.17.1",
67
- "@modern-js/app-tools": "2.17.1",
68
- "@scripts/jest-config": "2.17.1"
62
+ "@modern-js/core": "2.18.1",
63
+ "@modern-js/module-tools": "2.18.1",
64
+ "@modern-js/runtime": "2.18.1",
65
+ "@modern-js/types": "2.18.1",
66
+ "@scripts/build": "2.18.1",
67
+ "@modern-js/app-tools": "2.18.1",
68
+ "@scripts/jest-config": "2.18.1"
69
69
  },
70
70
  "peerDependencies": {
71
71
  "tailwindcss": ">= 2.0.0 || >= 3.0.0",
72
- "@modern-js/runtime": "^2.17.1"
72
+ "@modern-js/runtime": "^2.18.1"
73
73
  },
74
74
  "peerDependenciesMeta": {
75
75
  "@modern-js/runtime": {