@modern-js/plugin-tailwindcss 1.2.6 → 1.2.7

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,19 @@
1
1
  # @modern-js/plugin-tailwindcss
2
2
 
3
+ ## 1.2.7
4
+
5
+ ### Patch Changes
6
+
7
+ - 17d0cc46: feat: prebundle lodash to @modern-js/utils/lodash
8
+ - Updated dependencies [77ff9754]
9
+ - Updated dependencies [d2d1d6b2]
10
+ - Updated dependencies [07a4887e]
11
+ - Updated dependencies [ea2ae711]
12
+ - Updated dependencies [17d0cc46]
13
+ - Updated dependencies [d2d1d6b2]
14
+ - @modern-js/utils@1.4.0
15
+ - @modern-js/plugin-design-token@1.0.3
16
+
3
17
  ## 1.2.6
4
18
 
5
19
  ### Patch Changes
@@ -7,9 +7,7 @@ exports.getTailwindConfig = void 0;
7
7
 
8
8
  var _utils = require("@modern-js/utils");
9
9
 
10
- const cloneDeep = _utils.Import.lazy('lodash.clonedeep', require);
11
-
12
- const merge = _utils.Import.lazy('lodash.merge', require);
10
+ var _lodash = require("@modern-js/utils/lodash");
13
11
 
14
12
  const checkIfExistNotAllowKeys = tailwindConfig => {
15
13
  const notAllowExistKeys = ['theme'];
@@ -19,13 +17,13 @@ const checkIfExistNotAllowKeys = tailwindConfig => {
19
17
  };
20
18
 
21
19
  const getPureDesignSystemConfig = designSystemConfig => {
22
- const pureDesignSystemConfig = cloneDeep(designSystemConfig);
20
+ const pureDesignSystemConfig = (0, _lodash.cloneDeep)(designSystemConfig);
23
21
  delete pureDesignSystemConfig.supportStyledComponents;
24
22
  return pureDesignSystemConfig;
25
23
  };
26
24
 
27
25
  const getTailwindConfig = (config, option = {}) => {
28
- const purgeConfig = merge({
26
+ const purgeConfig = (0, _lodash.merge)({
29
27
  // TODO: how the operating environment is determined
30
28
  enabled: process.env.NODE_ENV === 'production',
31
29
  // TODO: Remove or not
package/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "modern",
12
12
  "modern.js"
13
13
  ],
14
- "version": "1.2.6",
14
+ "version": "1.2.7",
15
15
  "jsnext:source": "./src/index.ts",
16
16
  "types": "./dist/types/index.d.ts",
17
17
  "main": "./dist/js/node/index.js",
@@ -33,17 +33,13 @@
33
33
  },
34
34
  "dependencies": {
35
35
  "@babel/runtime": "^7",
36
- "@modern-js/utils": "^1.3.7",
37
- "@modern-js/plugin-design-token": "^1.0.3",
38
- "lodash.clonedeep": "^4.5.0",
39
- "lodash.merge": "^4.6.2"
36
+ "@modern-js/utils": "^1.4.0",
37
+ "@modern-js/plugin-design-token": "^1.0.3"
40
38
  },
41
39
  "devDependencies": {
42
- "@modern-js/core": "1.6.1",
40
+ "@modern-js/core": "1.7.0",
43
41
  "@scripts/build": "0.0.0",
44
42
  "@types/jest": "^26",
45
- "@types/lodash.clonedeep": "^4.5.6",
46
- "@types/lodash.merge": "^4.6.6",
47
43
  "@types/node": "^14",
48
44
  "@types/tailwindcss": "^2.2.1",
49
45
  "typescript": "^4",