@stylexswc/rollup-plugin 0.19.0-rc.3 → 0.19.0-rc.5
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/README.md +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -5
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -16,7 +16,7 @@ it is written to disk.
|
|
|
16
16
|
|
|
17
17
|
This is a community project and is not affiliated with Meta. It tracks the
|
|
18
18
|
official StyleX releases
|
|
19
|
-
<!-- stylex-compatibility:start -->(currently compatible with StyleX v0.19.
|
|
19
|
+
<!-- stylex-compatibility:start -->(currently compatible with StyleX v0.19.1)<!-- stylex-compatibility:end -->
|
|
20
20
|
|
|
21
21
|
and requires Node.js 20 or newer.
|
|
22
22
|
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAG3E,OAAO,KAAK,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAEpE,OAAO,KAAK,EAAE,MAAM,EAA2C,MAAM,QAAQ,CAAC;AAU9E,MAAM,MAAM,aAAa,GAAG;IAC1B,SAAS,CAAC,EAAE,aAAa,CAAC;IAC1B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,YAAY,CAAC,EAAE,aAAa,CAAC;IAC7B,mBAAmB,CAAC,EAAE,IAAI,CAAC,gBAAgB,CAAC,aAAa,CAAC,EAAE,MAAM,GAAG,UAAU,GAAG,SAAS,CAAC,CAAC;IAC7F,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB,CAAC;AAEF,MAAM,CAAC,OAAO,UAAU,YAAY,CAAC,EACnC,SAAc,EACd,QAAuB,EACvB,YAAoB,EACpB,mBAAmB,EACnB,UAAiB,GAClB,GAAE,aAAkB,GAAG,MAAM,CA6H7B"}
|
package/dist/index.js
CHANGED
|
@@ -7,6 +7,7 @@ exports.default = stylexPlugin;
|
|
|
7
7
|
const node_crypto_1 = __importDefault(require("node:crypto"));
|
|
8
8
|
const babel_plugin_1 = __importDefault(require("@stylexjs/babel-plugin"));
|
|
9
9
|
const module_selection_1 = require("@stylexswc/plugin-shared/module-selection");
|
|
10
|
+
const transformed_options_1 = require("@stylexswc/plugin-shared/transformed-options");
|
|
10
11
|
const rs_compiler_1 = require("@stylexswc/rs-compiler");
|
|
11
12
|
const browserslist_1 = __importDefault(require("browserslist"));
|
|
12
13
|
const lightningcss_1 = require("lightningcss");
|
|
@@ -20,11 +21,7 @@ function replaceFileName(original, css) {
|
|
|
20
21
|
}
|
|
21
22
|
function stylexPlugin({ rsOptions = {}, fileName = 'stylex.css', useCSSLayers = false, lightningcssOptions, extractCSS = true, } = {}) {
|
|
22
23
|
let stylexRules = {};
|
|
23
|
-
const transformedOptions =
|
|
24
|
-
useLayers: useCSSLayers,
|
|
25
|
-
enableLTRRTLComments: rsOptions?.enableLTRRTLComments,
|
|
26
|
-
legacyDisableLayers: rsOptions?.legacyDisableLayers,
|
|
27
|
-
};
|
|
24
|
+
const transformedOptions = (0, transformed_options_1.toTransformedOptions)(useCSSLayers, rsOptions);
|
|
28
25
|
return {
|
|
29
26
|
name: 'rollup-plugin-stylex',
|
|
30
27
|
buildStart() {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stylexswc/rollup-plugin",
|
|
3
3
|
"description": "StyleX plugin for Rollup powered by a Rust NAPI-RS/SWC compiler. Fast StyleX transforms and CSS extraction without Babel.",
|
|
4
|
-
"version": "0.19.0-rc.
|
|
4
|
+
"version": "0.19.0-rc.5",
|
|
5
5
|
"private": false,
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"sideEffects": false,
|
|
@@ -18,9 +18,9 @@
|
|
|
18
18
|
}
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@stylexjs/babel-plugin": "^0.19.
|
|
22
|
-
"@stylexswc/plugin-shared": "0.19.0-rc.
|
|
23
|
-
"@stylexswc/rs-compiler": "0.19.0-rc.
|
|
21
|
+
"@stylexjs/babel-plugin": "^0.19.1",
|
|
22
|
+
"@stylexswc/plugin-shared": "0.19.0-rc.5",
|
|
23
|
+
"@stylexswc/rs-compiler": "0.19.0-rc.5",
|
|
24
24
|
"lightningcss": "^1.32.0"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|