@cssxjs/loaders 0.2.15 → 0.2.17
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 +12 -0
- package/compilers/css.js +13 -0
- package/compilers/helpers.js +3 -0
- package/compilers/index.js +7 -0
- package/compilers/styl.js +14 -0
- package/package.json +4 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,15 @@
|
|
|
1
|
+
# v0.2.16 (Sun Nov 09 2025)
|
|
2
|
+
|
|
3
|
+
#### 🚀 Enhancement
|
|
4
|
+
|
|
5
|
+
- feat(babel-plugin-rn-stylename-to-style): Support compiling css file imports in Babel itself ([@cray0000](https://github.com/cray0000))
|
|
6
|
+
|
|
7
|
+
#### Authors: 1
|
|
8
|
+
|
|
9
|
+
- Pavel Zhukov ([@cray0000](https://github.com/cray0000))
|
|
10
|
+
|
|
11
|
+
---
|
|
12
|
+
|
|
1
13
|
# v0.2.7 (Wed Nov 05 2025)
|
|
2
14
|
|
|
3
15
|
#### 🐛 Bug Fix
|
package/compilers/css.js
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
// TODO: Move loaders into standalone libs
|
|
2
|
+
const cssLoader = require('../cssToReactNativeLoader.js')
|
|
3
|
+
const callLoader = require('../callLoader.js')
|
|
4
|
+
const { stripExport } = require('./helpers')
|
|
5
|
+
|
|
6
|
+
module.exports = function compileCss (src) {
|
|
7
|
+
return stripExport(
|
|
8
|
+
callLoader(
|
|
9
|
+
cssLoader,
|
|
10
|
+
src
|
|
11
|
+
)
|
|
12
|
+
)
|
|
13
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
// TODO: Move loaders into standalone libs
|
|
2
|
+
const stylLoader = require('../stylusToCssLoader.js')
|
|
3
|
+
const callLoader = require('../callLoader.js')
|
|
4
|
+
const compileCss = require('./css')
|
|
5
|
+
|
|
6
|
+
module.exports = function compileStyl (src, filename, options) {
|
|
7
|
+
src = callLoader(
|
|
8
|
+
stylLoader,
|
|
9
|
+
src,
|
|
10
|
+
filename,
|
|
11
|
+
options
|
|
12
|
+
)
|
|
13
|
+
return compileCss(src)
|
|
14
|
+
}
|
package/package.json
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cssxjs/loaders",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.17",
|
|
4
4
|
"description": "Webpack-compatible loaders for CSSX styles in React Native and Web bundlers",
|
|
5
5
|
"exports": {
|
|
6
6
|
"./callLoader": "./callLoader.js",
|
|
7
7
|
"./stylusToCssLoader": "./stylusToCssLoader.js",
|
|
8
|
-
"./cssToReactNativeLoader": "./cssToReactNativeLoader.js"
|
|
8
|
+
"./cssToReactNativeLoader": "./cssToReactNativeLoader.js",
|
|
9
|
+
"./compilers": "./compilers/index.js"
|
|
9
10
|
},
|
|
10
11
|
"publishConfig": {
|
|
11
12
|
"access": "public"
|
|
@@ -22,5 +23,5 @@
|
|
|
22
23
|
"@startupjs/css-to-react-native-transform": "^2.1.0-1",
|
|
23
24
|
"stylus": "0.64.0"
|
|
24
25
|
},
|
|
25
|
-
"gitHead": "
|
|
26
|
+
"gitHead": "02b76ae074674c67f8d50a85b091e1190648449d"
|
|
26
27
|
}
|