@stylexjs/rollup-plugin 0.2.0-beta.16 → 0.2.0-beta.18
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/__tests__/index-test.js +6 -0
- package/package.json +5 -5
package/__tests__/index-test.js
CHANGED
|
@@ -73,6 +73,7 @@ describe('rollup-plugin-stylex', () => {
|
|
|
73
73
|
"import stylex from 'stylex';
|
|
74
74
|
|
|
75
75
|
// otherStyles.js
|
|
76
|
+
|
|
76
77
|
var styles$2 = {
|
|
77
78
|
bar: {
|
|
78
79
|
display: "xntgbld",
|
|
@@ -82,6 +83,7 @@ describe('rollup-plugin-stylex', () => {
|
|
|
82
83
|
};
|
|
83
84
|
|
|
84
85
|
// npmStyles.js
|
|
86
|
+
|
|
85
87
|
const styles$1 = {
|
|
86
88
|
baz: {
|
|
87
89
|
display: "x1wdx05y",
|
|
@@ -92,6 +94,7 @@ describe('rollup-plugin-stylex', () => {
|
|
|
92
94
|
};
|
|
93
95
|
|
|
94
96
|
// index.js
|
|
97
|
+
|
|
95
98
|
var styles = {
|
|
96
99
|
foo: {
|
|
97
100
|
animationName: "x1nrqb13",
|
|
@@ -135,6 +138,7 @@ describe('rollup-plugin-stylex', () => {
|
|
|
135
138
|
"import stylex from 'stylex';
|
|
136
139
|
|
|
137
140
|
// otherStyles.js
|
|
141
|
+
|
|
138
142
|
stylex.inject(".xntgbld{display:block}", 4);
|
|
139
143
|
stylex.inject(".x6mlivy{width:100%}", 4);
|
|
140
144
|
var styles$2 = {
|
|
@@ -147,6 +151,7 @@ describe('rollup-plugin-stylex', () => {
|
|
|
147
151
|
};
|
|
148
152
|
|
|
149
153
|
// npmStyles.js
|
|
154
|
+
|
|
150
155
|
stylex.inject(".x1wdx05y{display:inline}", 4);
|
|
151
156
|
stylex.inject(".x1je5kxa{height:500px}", 4);
|
|
152
157
|
stylex.inject(".x1u78jha{width:50%}", 4);
|
|
@@ -161,6 +166,7 @@ describe('rollup-plugin-stylex', () => {
|
|
|
161
166
|
};
|
|
162
167
|
|
|
163
168
|
// index.js
|
|
169
|
+
|
|
164
170
|
stylex.inject("@keyframes x11gtny7-B{0%{opacity:.25;}100%{opacity:1;}}", 1);
|
|
165
171
|
stylex.inject(".x1nrqb13{animation-name:x11gtny7-B}", 4);
|
|
166
172
|
stylex.inject(".x1c4r43l{display:flex}", 4);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stylexjs/rollup-plugin",
|
|
3
|
-
"version": "0.2.0-beta.
|
|
3
|
+
"version": "0.2.0-beta.18",
|
|
4
4
|
"description": "Rollup plugin for StyleX",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"repository": "https://www.github.com/facebook/stylex",
|
|
@@ -18,14 +18,14 @@
|
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"@babel/core": "^7.16.0",
|
|
21
|
-
"@stylexjs/babel-plugin": "0.2.0-beta.
|
|
21
|
+
"@stylexjs/babel-plugin": "0.2.0-beta.18"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
24
|
"@babel/preset-env": "^7.16.8",
|
|
25
25
|
"@rollup/plugin-babel": "^6.0.0",
|
|
26
|
-
"@rollup/plugin-commonjs": "^
|
|
26
|
+
"@rollup/plugin-commonjs": "^25.0.3",
|
|
27
27
|
"@rollup/plugin-node-resolve": "^15.0.0",
|
|
28
|
-
"rollup": "^3.
|
|
29
|
-
"@stylexjs/stylex": "0.2.0-beta.
|
|
28
|
+
"rollup": "^3.26.3",
|
|
29
|
+
"@stylexjs/stylex": "0.2.0-beta.18"
|
|
30
30
|
}
|
|
31
31
|
}
|