@stylexswc/rollup-plugin 0.19.0-rc.2 → 0.19.0-rc.3
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/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -3
- package/package.json +3 -2
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":"AAUA,OAAO,KAAK,EAAE,aAAa,EAAsB,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAG/F,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,CAiI7B"}
|
package/dist/index.js
CHANGED
|
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
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
|
+
const module_selection_1 = require("@stylexswc/plugin-shared/module-selection");
|
|
9
10
|
const rs_compiler_1 = require("@stylexswc/rs-compiler");
|
|
10
11
|
const browserslist_1 = __importDefault(require("browserslist"));
|
|
11
12
|
const lightningcss_1 = require("lightningcss");
|
|
@@ -64,9 +65,7 @@ function stylexPlugin({ rsOptions = {}, fileName = 'stylex.css', useCSSLayers =
|
|
|
64
65
|
rsOptions.exclude = undefined;
|
|
65
66
|
}
|
|
66
67
|
const normalizedRsOptions = (0, rs_compiler_1.normalizeRsOptions)(rsOptions ?? {});
|
|
67
|
-
if (!
|
|
68
|
-
? inputCode.includes(importName)
|
|
69
|
-
: inputCode.includes(importName.from))) {
|
|
68
|
+
if (!(0, module_selection_1.shouldProcessSource)(inputCode, normalizedRsOptions)) {
|
|
70
69
|
// In rollup, returning null from any plugin phase means
|
|
71
70
|
// "no changes made".
|
|
72
71
|
return null;
|
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.3",
|
|
5
5
|
"private": false,
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"sideEffects": false,
|
|
@@ -19,7 +19,8 @@
|
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@stylexjs/babel-plugin": "^0.19.0",
|
|
22
|
-
"@stylexswc/
|
|
22
|
+
"@stylexswc/plugin-shared": "0.19.0-rc.3",
|
|
23
|
+
"@stylexswc/rs-compiler": "0.19.0-rc.3",
|
|
23
24
|
"lightningcss": "^1.32.0"
|
|
24
25
|
},
|
|
25
26
|
"devDependencies": {
|