@stylexswc/rollup-plugin 0.15.4 → 0.15.5-rc.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/dist/index.js +2 -35
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1,43 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
-
var ownKeys = function(o) {
|
|
20
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
-
var ar = [];
|
|
22
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
-
return ar;
|
|
24
|
-
};
|
|
25
|
-
return ownKeys(o);
|
|
26
|
-
};
|
|
27
|
-
return function (mod) {
|
|
28
|
-
if (mod && mod.__esModule) return mod;
|
|
29
|
-
var result = {};
|
|
30
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
-
__setModuleDefault(result, mod);
|
|
32
|
-
return result;
|
|
33
|
-
};
|
|
34
|
-
})();
|
|
35
2
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
36
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
37
4
|
};
|
|
38
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
6
|
exports.default = stylexPlugin;
|
|
40
|
-
const rs_compiler_1 =
|
|
7
|
+
const rs_compiler_1 = require("@stylexswc/rs-compiler");
|
|
41
8
|
const lightningcss_1 = require("lightningcss");
|
|
42
9
|
const browserslist_1 = __importDefault(require("browserslist"));
|
|
43
10
|
const lightningcss_2 = require("lightningcss");
|
|
@@ -104,7 +71,7 @@ function stylexPlugin({ rsOptions = {}, fileName = 'stylex.css', useCSSLayers =
|
|
|
104
71
|
// "no changes made".
|
|
105
72
|
return null;
|
|
106
73
|
}
|
|
107
|
-
const result = rs_compiler_1.
|
|
74
|
+
const result = (0, rs_compiler_1.transform)(id, inputCode, normalizedRsOptions);
|
|
108
75
|
if (result == null) {
|
|
109
76
|
console.warn('stylex: transformAsync returned null');
|
|
110
77
|
return { code: inputCode };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stylexswc/rollup-plugin",
|
|
3
3
|
"description": "StyleX rollup plugin with NAPI-RS compiler",
|
|
4
|
-
"version": "0.15.
|
|
4
|
+
"version": "0.15.5-rc.1",
|
|
5
5
|
"private": false,
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"sideEffects": false,
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@stylexjs/babel-plugin": "^0.18.2",
|
|
22
|
-
"@stylexswc/rs-compiler": "0.15.
|
|
22
|
+
"@stylexswc/rs-compiler": "0.15.5-rc.1",
|
|
23
23
|
"lightningcss": "^1.31.1"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|