babel-preset-cssxjs 0.2.32 → 0.3.0-alpha.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 +22 -0
- package/index.js +1 -3
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,28 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [0.3.0-alpha.1](https://github.com/startupjs/cssx/compare/v0.3.0-alpha.0...v0.3.0-alpha.1) (2026-03-25)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Performance Improvements
|
|
10
|
+
|
|
11
|
+
* update babel pug plugin to short-circuit processing of files which don't have pug ([6317ee3](https://github.com/startupjs/cssx/commit/6317ee3d9b30a218cc6a5157327ad85fa46e1ac2))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
# [0.3.0-alpha.0](https://github.com/startupjs/cssx/compare/v0.2.33...v0.3.0-alpha.0) (2026-03-25)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Features
|
|
21
|
+
|
|
22
|
+
* use the new pug babel plugn and eslint plugin from 'react-pug' with support for 'style' tags and full TSX support ([28e7a22](https://github.com/startupjs/cssx/commit/28e7a22e8069dec77c4a120f42b951ef90a4bef9))
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
6
28
|
## [0.2.32](https://github.com/startupjs/cssx/compare/v0.2.31...v0.2.32) (2026-01-25)
|
|
7
29
|
|
|
8
30
|
**Note:** Version bump only for package babel-preset-cssxjs
|
package/index.js
CHANGED
|
@@ -36,9 +36,7 @@ module.exports = (api, {
|
|
|
36
36
|
plugins: [
|
|
37
37
|
// transform pug to jsx. This generates a bunch of new AST nodes
|
|
38
38
|
// (it's important to do this first before any dead code elimination runs)
|
|
39
|
-
transformPug && [require('@
|
|
40
|
-
classAttribute: 'styleName'
|
|
41
|
-
}],
|
|
39
|
+
transformPug && [require('@react-pug/babel-plugin-react-pug')],
|
|
42
40
|
// inline CSS modules (styl`` in the same JSX file -- similar to how it is in Vue.js)
|
|
43
41
|
transformCss && [require('@cssxjs/babel-plugin-rn-stylename-inline'), {
|
|
44
42
|
platform
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "babel-preset-cssxjs",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0-alpha.1",
|
|
4
4
|
"description": "Babel preset for compiling CSSX",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"exports": {
|
|
@@ -16,9 +16,9 @@
|
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"@babel/plugin-syntax-jsx": "^7.0.0",
|
|
18
18
|
"@babel/plugin-syntax-typescript": "^7.23.3",
|
|
19
|
-
"@cssxjs/babel-plugin-
|
|
20
|
-
"@cssxjs/babel-plugin-rn-stylename-
|
|
21
|
-
"@
|
|
19
|
+
"@cssxjs/babel-plugin-rn-stylename-inline": "^0.3.0-alpha.0",
|
|
20
|
+
"@cssxjs/babel-plugin-rn-stylename-to-style": "^0.3.0-alpha.1",
|
|
21
|
+
"@react-pug/babel-plugin-react-pug": "^0.1.10"
|
|
22
22
|
},
|
|
23
|
-
"gitHead": "
|
|
23
|
+
"gitHead": "54f59903b0fb97c47b97451fdd7e3e146fc451f9"
|
|
24
24
|
}
|