@modern-js/plugin-tailwindcss 1.2.6 → 1.2.9
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 +38 -0
- package/dist/js/node/tailwind.js +3 -5
- package/package.json +4 -8
- package/tests/index.test.ts +0 -7
- package/tests/tsconfig.json +0 -13
package/CHANGELOG.md
CHANGED
@@ -1,5 +1,43 @@
|
|
1
1
|
# @modern-js/plugin-tailwindcss
|
2
2
|
|
3
|
+
## 1.2.9
|
4
|
+
|
5
|
+
### Patch Changes
|
6
|
+
|
7
|
+
- 69a728375: fix: remove exports.jsnext:source after publish
|
8
|
+
- 0f86e133b: fix react & react-dom types problem
|
9
|
+
- Updated dependencies [cd7346b0d]
|
10
|
+
- Updated dependencies [69a728375]
|
11
|
+
- @modern-js/utils@1.7.2
|
12
|
+
- @modern-js/plugin-design-token@1.0.6
|
13
|
+
|
14
|
+
## 1.2.8
|
15
|
+
|
16
|
+
### Patch Changes
|
17
|
+
|
18
|
+
- 04ae5262: chore: bump @modern-js/utils to v1.4.1 in dependencies
|
19
|
+
- 60f7d8bf: feat: add tests dir to npmignore
|
20
|
+
- Updated dependencies [b8599d09]
|
21
|
+
- Updated dependencies [04ae5262]
|
22
|
+
- Updated dependencies [60f7d8bf]
|
23
|
+
- Updated dependencies [3bf4f8b0]
|
24
|
+
- @modern-js/utils@1.5.0
|
25
|
+
- @modern-js/plugin-design-token@1.0.4
|
26
|
+
|
27
|
+
## 1.2.7
|
28
|
+
|
29
|
+
### Patch Changes
|
30
|
+
|
31
|
+
- 17d0cc46: feat: prebundle lodash to @modern-js/utils/lodash
|
32
|
+
- Updated dependencies [77ff9754]
|
33
|
+
- Updated dependencies [d2d1d6b2]
|
34
|
+
- Updated dependencies [07a4887e]
|
35
|
+
- Updated dependencies [ea2ae711]
|
36
|
+
- Updated dependencies [17d0cc46]
|
37
|
+
- Updated dependencies [d2d1d6b2]
|
38
|
+
- @modern-js/utils@1.4.0
|
39
|
+
- @modern-js/plugin-design-token@1.0.3
|
40
|
+
|
3
41
|
## 1.2.6
|
4
42
|
|
5
43
|
### Patch Changes
|
package/dist/js/node/tailwind.js
CHANGED
@@ -7,9 +7,7 @@ exports.getTailwindConfig = void 0;
|
|
7
7
|
|
8
8
|
var _utils = require("@modern-js/utils");
|
9
9
|
|
10
|
-
|
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.
|
14
|
+
"version": "1.2.9",
|
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.
|
37
|
-
"@modern-js/plugin-design-token": "^1.0.
|
38
|
-
"lodash.clonedeep": "^4.5.0",
|
39
|
-
"lodash.merge": "^4.6.2"
|
36
|
+
"@modern-js/utils": "^1.7.2",
|
37
|
+
"@modern-js/plugin-design-token": "^1.0.6"
|
40
38
|
},
|
41
39
|
"devDependencies": {
|
42
|
-
"@modern-js/core": "1.
|
40
|
+
"@modern-js/core": "1.10.1",
|
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",
|
package/tests/index.test.ts
DELETED
package/tests/tsconfig.json
DELETED
@@ -1,13 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"extends": "@modern-js/tsconfig/base",
|
3
|
-
"compilerOptions": {
|
4
|
-
"declaration": true,
|
5
|
-
"jsx": "preserve",
|
6
|
-
"baseUrl": "./",
|
7
|
-
"outDir": "./out",
|
8
|
-
"emitDeclarationOnly": true,
|
9
|
-
"isolatedModules": true,
|
10
|
-
"paths": {},
|
11
|
-
"types": ["node", "jest"]
|
12
|
-
}
|
13
|
-
}
|