@stylexswc/unplugin 0.10.2 → 0.10.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/astro.cjs +2 -2
- package/dist/astro.js +1 -1
- package/dist/{chunk-3YSBXRBM.cjs → chunk-2W5DLJJ7.cjs} +2 -2
- package/dist/{chunk-YJKH52EW.js → chunk-B7JMN6R2.js} +1 -1
- package/dist/{chunk-YKHCVYVX.js → chunk-E3GW43UE.js} +110 -37
- package/dist/{chunk-5G6X3Y54.cjs → chunk-LNLTP2IK.cjs} +2 -2
- package/dist/{chunk-U6CL3DR6.cjs → chunk-WQAFPH6M.cjs} +110 -37
- package/dist/{chunk-NV2BW3AB.js → chunk-ZHPGSPKE.js} +1 -1
- package/dist/esbuild.cjs +2 -2
- package/dist/esbuild.js +1 -1
- package/dist/farm.cjs +2 -2
- package/dist/farm.js +1 -1
- package/dist/index.cjs +2 -2
- package/dist/index.js +1 -1
- package/dist/nuxt.cjs +5 -5
- package/dist/nuxt.js +3 -3
- package/dist/rollup.cjs +2 -2
- package/dist/rollup.js +1 -1
- package/dist/rspack.cjs +2 -2
- package/dist/rspack.js +1 -1
- package/dist/vite.cjs +3 -3
- package/dist/vite.js +2 -2
- package/dist/webpack.cjs +3 -3
- package/dist/webpack.js +2 -2
- package/package.json +2 -2
package/dist/astro.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkWQAFPH6Mcjs = require('./chunk-WQAFPH6M.cjs');
|
|
4
4
|
require('./chunk-ZBPRDZS4.cjs');
|
|
5
5
|
|
|
6
6
|
// src/astro.ts
|
|
@@ -10,7 +10,7 @@ var astro_default = (options) => ({
|
|
|
10
10
|
"astro:config:setup": async (astro) => {
|
|
11
11
|
var _a;
|
|
12
12
|
(_a = astro.config.vite).plugins || (_a.plugins = []);
|
|
13
|
-
astro.config.vite.plugins.push(
|
|
13
|
+
astro.config.vite.plugins.push(_chunkWQAFPH6Mcjs.index_default.vite(options));
|
|
14
14
|
}
|
|
15
15
|
}
|
|
16
16
|
});
|
package/dist/astro.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkWQAFPH6Mcjs = require('./chunk-WQAFPH6M.cjs');
|
|
4
4
|
|
|
5
5
|
// src/webpack.ts
|
|
6
6
|
var _unplugin = require('unplugin');
|
|
7
|
-
var webpack_default = _unplugin.createWebpackPlugin.call(void 0,
|
|
7
|
+
var webpack_default = _unplugin.createWebpackPlugin.call(void 0, _chunkWQAFPH6Mcjs.unpluginFactory);
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
@@ -72,6 +72,7 @@ var unpluginFactory = (options = {}) => {
|
|
|
72
72
|
let viteConfig = null;
|
|
73
73
|
let hasCssToExtract = false;
|
|
74
74
|
let cssFileName = null;
|
|
75
|
+
let wsSend = void 0;
|
|
75
76
|
return {
|
|
76
77
|
name: "unplugin-stylex-rs",
|
|
77
78
|
transformInclude(id) {
|
|
@@ -85,25 +86,34 @@ var unpluginFactory = (options = {}) => {
|
|
|
85
86
|
return pageExtensions.includes(cleanedExtensionName);
|
|
86
87
|
},
|
|
87
88
|
async transform(inputCode, id) {
|
|
88
|
-
|
|
89
|
-
const dir = path.dirname(id);
|
|
90
|
-
const basename2 = path.basename(id);
|
|
91
|
-
const file = path.join(dir, basename2.split("?")[0] || basename2);
|
|
92
|
-
if (!((_a = normalizedOptions.rsOptions.importSources) == null ? void 0 : _a.some(
|
|
93
|
-
(importName) => typeof importName === "string" ? inputCode.includes(importName) : inputCode.includes(importName.from)
|
|
94
|
-
))) {
|
|
89
|
+
if (!hasStyleXCode(normalizedOptions, inputCode)) {
|
|
95
90
|
return {
|
|
96
91
|
code: inputCode
|
|
97
92
|
};
|
|
98
93
|
}
|
|
94
|
+
const dir = path.dirname(id);
|
|
95
|
+
const basename2 = path.basename(id);
|
|
96
|
+
const file = path.join(dir, basename2.split("?")[0] || basename2);
|
|
99
97
|
try {
|
|
100
|
-
const { code,
|
|
98
|
+
const { code, map } = transformStyleXCode(
|
|
101
99
|
file,
|
|
102
100
|
inputCode,
|
|
103
|
-
normalizedOptions
|
|
101
|
+
normalizedOptions,
|
|
102
|
+
stylexRules,
|
|
103
|
+
id
|
|
104
104
|
);
|
|
105
|
-
if (
|
|
106
|
-
|
|
105
|
+
if (typeof wsSend === "function" && cssFileName) {
|
|
106
|
+
wsSend({
|
|
107
|
+
type: "update",
|
|
108
|
+
updates: [
|
|
109
|
+
{
|
|
110
|
+
acceptedPath: cssFileName,
|
|
111
|
+
path: cssFileName,
|
|
112
|
+
timestamp: Date.now(),
|
|
113
|
+
type: "css-update"
|
|
114
|
+
}
|
|
115
|
+
]
|
|
116
|
+
});
|
|
107
117
|
}
|
|
108
118
|
return {
|
|
109
119
|
code,
|
|
@@ -121,15 +131,16 @@ var unpluginFactory = (options = {}) => {
|
|
|
121
131
|
if (framework === "esbuild") {
|
|
122
132
|
return;
|
|
123
133
|
}
|
|
124
|
-
const collectedCSS =
|
|
134
|
+
const { processedFileName, collectedCSS } = generateCSSAssets(stylexRules, normalizedOptions);
|
|
125
135
|
if (!collectedCSS) return;
|
|
126
136
|
hasCssToExtract = true;
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
137
|
+
if (processedFileName) {
|
|
138
|
+
this.emitFile({
|
|
139
|
+
fileName: processedFileName,
|
|
140
|
+
source: collectedCSS,
|
|
141
|
+
type: "asset"
|
|
142
|
+
});
|
|
143
|
+
}
|
|
133
144
|
},
|
|
134
145
|
vite: {
|
|
135
146
|
config(config) {
|
|
@@ -143,16 +154,20 @@ var unpluginFactory = (options = {}) => {
|
|
|
143
154
|
config.optimizeDeps.exclude.push("@stylexjs/open-props");
|
|
144
155
|
},
|
|
145
156
|
buildEnd() {
|
|
146
|
-
var _a
|
|
147
|
-
const
|
|
148
|
-
|
|
157
|
+
var _a;
|
|
158
|
+
const { processedFileName, collectedCSS } = generateCSSAssets(
|
|
159
|
+
stylexRules,
|
|
160
|
+
normalizedOptions,
|
|
161
|
+
(_a = viteConfig == null ? void 0 : viteConfig.build) == null ? void 0 : _a.assetsDir
|
|
162
|
+
);
|
|
149
163
|
if (!collectedCSS) return;
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
164
|
+
if (processedFileName) {
|
|
165
|
+
this.emitFile({
|
|
166
|
+
fileName: processedFileName,
|
|
167
|
+
source: collectedCSS,
|
|
168
|
+
type: "asset"
|
|
169
|
+
});
|
|
170
|
+
}
|
|
156
171
|
},
|
|
157
172
|
configureServer(server) {
|
|
158
173
|
server.middlewares.use((req, res, next) => {
|
|
@@ -166,24 +181,54 @@ var unpluginFactory = (options = {}) => {
|
|
|
166
181
|
next();
|
|
167
182
|
});
|
|
168
183
|
},
|
|
169
|
-
|
|
170
|
-
var _a
|
|
171
|
-
const
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
184
|
+
async handleHotUpdate({ file: id, file, server, read }) {
|
|
185
|
+
var _a;
|
|
186
|
+
const inputCode = await read();
|
|
187
|
+
if (!hasStyleXCode(normalizedOptions, inputCode)) {
|
|
188
|
+
return;
|
|
189
|
+
}
|
|
190
|
+
transformStyleXCode(file, inputCode, normalizedOptions, stylexRules, id);
|
|
191
|
+
const { processedFileName, collectedCSS } = generateCSSAssets(
|
|
192
|
+
stylexRules,
|
|
193
|
+
normalizedOptions,
|
|
194
|
+
(_a = viteConfig == null ? void 0 : viteConfig.build) == null ? void 0 : _a.assetsDir
|
|
195
|
+
);
|
|
196
|
+
if (!collectedCSS) return;
|
|
197
|
+
if (processedFileName) {
|
|
198
|
+
server.ws.send({
|
|
199
|
+
type: "update",
|
|
200
|
+
updates: [
|
|
201
|
+
{
|
|
202
|
+
acceptedPath: processedFileName,
|
|
203
|
+
path: processedFileName,
|
|
204
|
+
timestamp: Date.now(),
|
|
205
|
+
type: "css-update"
|
|
206
|
+
}
|
|
207
|
+
]
|
|
208
|
+
});
|
|
175
209
|
}
|
|
176
|
-
|
|
177
|
-
|
|
210
|
+
},
|
|
211
|
+
transformIndexHtml: (html, ctx) => {
|
|
212
|
+
var _a, _b;
|
|
213
|
+
const isDev = !!ctx.server;
|
|
214
|
+
const { processedFileName } = generateCSSAssets(
|
|
215
|
+
stylexRules,
|
|
216
|
+
normalizedOptions,
|
|
217
|
+
(_a = viteConfig == null ? void 0 : viteConfig.build) == null ? void 0 : _a.assetsDir
|
|
218
|
+
);
|
|
219
|
+
if (!processedFileName) {
|
|
178
220
|
return html;
|
|
179
221
|
}
|
|
180
|
-
|
|
222
|
+
if (isDev) {
|
|
223
|
+
wsSend || (wsSend = (_b = ctx.server) == null ? void 0 : _b.ws.send.bind(ctx.server.ws));
|
|
224
|
+
cssFileName || (cssFileName = processedFileName);
|
|
225
|
+
}
|
|
181
226
|
return [
|
|
182
227
|
{
|
|
183
228
|
tag: "link",
|
|
184
229
|
attrs: {
|
|
185
230
|
rel: "stylesheet",
|
|
186
|
-
href:
|
|
231
|
+
href: processedFileName
|
|
187
232
|
},
|
|
188
233
|
injectTo: "head"
|
|
189
234
|
}
|
|
@@ -232,6 +277,34 @@ var unpluginFactory = (options = {}) => {
|
|
|
232
277
|
}
|
|
233
278
|
};
|
|
234
279
|
};
|
|
280
|
+
function generateCSSAssets(stylexRules, normalizedOptions, assetsDir) {
|
|
281
|
+
const collectedCSS = getStyleXRules(stylexRules, normalizedOptions.useCSSLayers);
|
|
282
|
+
const processedFileName = getProcessedFileName(normalizedOptions, collectedCSS || "", assetsDir);
|
|
283
|
+
return { processedFileName, collectedCSS };
|
|
284
|
+
}
|
|
285
|
+
function hasStyleXCode(normalizedOptions, inputCode) {
|
|
286
|
+
var _a;
|
|
287
|
+
return (_a = normalizedOptions.rsOptions.importSources) == null ? void 0 : _a.some(
|
|
288
|
+
(importName) => typeof importName === "string" ? inputCode.includes(importName) : inputCode.includes(importName.from)
|
|
289
|
+
);
|
|
290
|
+
}
|
|
291
|
+
function transformStyleXCode(file, inputCode, normalizedOptions, stylexRules, id) {
|
|
292
|
+
const result = stylexRsCompiler.transform(file, inputCode, normalizedOptions.rsOptions);
|
|
293
|
+
const { metadata } = result;
|
|
294
|
+
if (normalizedOptions.extractCSS && metadata.stylex && metadata.stylex.length > 0) {
|
|
295
|
+
stylexRules[id] = metadata.stylex;
|
|
296
|
+
}
|
|
297
|
+
return result;
|
|
298
|
+
}
|
|
299
|
+
function getProcessedFileName(normalizedOptions, collectedCSS, assetsDir) {
|
|
300
|
+
if (!normalizedOptions.fileName) {
|
|
301
|
+
return null;
|
|
302
|
+
}
|
|
303
|
+
return replaceFileName(
|
|
304
|
+
`${assetsDir ? `${assetsDir}/` : ""}${normalizedOptions.fileName}`,
|
|
305
|
+
collectedCSS || ""
|
|
306
|
+
);
|
|
307
|
+
}
|
|
235
308
|
var unplugin = createUnplugin(unpluginFactory);
|
|
236
309
|
var index_default = unplugin;
|
|
237
310
|
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkWQAFPH6Mcjs = require('./chunk-WQAFPH6M.cjs');
|
|
4
4
|
|
|
5
5
|
// src/vite.ts
|
|
6
6
|
var _unplugin = require('unplugin');
|
|
7
|
-
var vite_default = _unplugin.createVitePlugin.call(void 0,
|
|
7
|
+
var vite_default = _unplugin.createVitePlugin.call(void 0, _chunkWQAFPH6Mcjs.unpluginFactory);
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
@@ -72,6 +72,7 @@ var unpluginFactory = (options = {}) => {
|
|
|
72
72
|
let viteConfig = null;
|
|
73
73
|
let hasCssToExtract = false;
|
|
74
74
|
let cssFileName = null;
|
|
75
|
+
let wsSend = void 0;
|
|
75
76
|
return {
|
|
76
77
|
name: "unplugin-stylex-rs",
|
|
77
78
|
transformInclude(id) {
|
|
@@ -85,25 +86,34 @@ var unpluginFactory = (options = {}) => {
|
|
|
85
86
|
return pageExtensions.includes(cleanedExtensionName);
|
|
86
87
|
},
|
|
87
88
|
async transform(inputCode, id) {
|
|
88
|
-
|
|
89
|
-
const dir = path.dirname(id);
|
|
90
|
-
const basename2 = path.basename(id);
|
|
91
|
-
const file = path.join(dir, basename2.split("?")[0] || basename2);
|
|
92
|
-
if (!((_a = normalizedOptions.rsOptions.importSources) == null ? void 0 : _a.some(
|
|
93
|
-
(importName) => typeof importName === "string" ? inputCode.includes(importName) : inputCode.includes(importName.from)
|
|
94
|
-
))) {
|
|
89
|
+
if (!hasStyleXCode(normalizedOptions, inputCode)) {
|
|
95
90
|
return {
|
|
96
91
|
code: inputCode
|
|
97
92
|
};
|
|
98
93
|
}
|
|
94
|
+
const dir = path.dirname(id);
|
|
95
|
+
const basename2 = path.basename(id);
|
|
96
|
+
const file = path.join(dir, basename2.split("?")[0] || basename2);
|
|
99
97
|
try {
|
|
100
|
-
const { code,
|
|
98
|
+
const { code, map } = transformStyleXCode(
|
|
101
99
|
file,
|
|
102
100
|
inputCode,
|
|
103
|
-
normalizedOptions
|
|
101
|
+
normalizedOptions,
|
|
102
|
+
stylexRules,
|
|
103
|
+
id
|
|
104
104
|
);
|
|
105
|
-
if (
|
|
106
|
-
|
|
105
|
+
if (typeof wsSend === "function" && cssFileName) {
|
|
106
|
+
wsSend({
|
|
107
|
+
type: "update",
|
|
108
|
+
updates: [
|
|
109
|
+
{
|
|
110
|
+
acceptedPath: cssFileName,
|
|
111
|
+
path: cssFileName,
|
|
112
|
+
timestamp: Date.now(),
|
|
113
|
+
type: "css-update"
|
|
114
|
+
}
|
|
115
|
+
]
|
|
116
|
+
});
|
|
107
117
|
}
|
|
108
118
|
return {
|
|
109
119
|
code,
|
|
@@ -121,15 +131,16 @@ var unpluginFactory = (options = {}) => {
|
|
|
121
131
|
if (framework === "esbuild") {
|
|
122
132
|
return;
|
|
123
133
|
}
|
|
124
|
-
const collectedCSS =
|
|
134
|
+
const { processedFileName, collectedCSS } = generateCSSAssets(stylexRules, normalizedOptions);
|
|
125
135
|
if (!collectedCSS) return;
|
|
126
136
|
hasCssToExtract = true;
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
137
|
+
if (processedFileName) {
|
|
138
|
+
this.emitFile({
|
|
139
|
+
fileName: processedFileName,
|
|
140
|
+
source: collectedCSS,
|
|
141
|
+
type: "asset"
|
|
142
|
+
});
|
|
143
|
+
}
|
|
133
144
|
},
|
|
134
145
|
vite: {
|
|
135
146
|
config(config) {
|
|
@@ -143,16 +154,20 @@ var unpluginFactory = (options = {}) => {
|
|
|
143
154
|
config.optimizeDeps.exclude.push("@stylexjs/open-props");
|
|
144
155
|
},
|
|
145
156
|
buildEnd() {
|
|
146
|
-
var _a
|
|
147
|
-
const
|
|
148
|
-
|
|
157
|
+
var _a;
|
|
158
|
+
const { processedFileName, collectedCSS } = generateCSSAssets(
|
|
159
|
+
stylexRules,
|
|
160
|
+
normalizedOptions,
|
|
161
|
+
(_a = viteConfig == null ? void 0 : viteConfig.build) == null ? void 0 : _a.assetsDir
|
|
162
|
+
);
|
|
149
163
|
if (!collectedCSS) return;
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
164
|
+
if (processedFileName) {
|
|
165
|
+
this.emitFile({
|
|
166
|
+
fileName: processedFileName,
|
|
167
|
+
source: collectedCSS,
|
|
168
|
+
type: "asset"
|
|
169
|
+
});
|
|
170
|
+
}
|
|
156
171
|
},
|
|
157
172
|
configureServer(server) {
|
|
158
173
|
server.middlewares.use((req, res, next) => {
|
|
@@ -166,24 +181,54 @@ var unpluginFactory = (options = {}) => {
|
|
|
166
181
|
next();
|
|
167
182
|
});
|
|
168
183
|
},
|
|
169
|
-
|
|
170
|
-
var _a
|
|
171
|
-
const
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
184
|
+
async handleHotUpdate({ file: id, file, server, read }) {
|
|
185
|
+
var _a;
|
|
186
|
+
const inputCode = await read();
|
|
187
|
+
if (!hasStyleXCode(normalizedOptions, inputCode)) {
|
|
188
|
+
return;
|
|
189
|
+
}
|
|
190
|
+
transformStyleXCode(file, inputCode, normalizedOptions, stylexRules, id);
|
|
191
|
+
const { processedFileName, collectedCSS } = generateCSSAssets(
|
|
192
|
+
stylexRules,
|
|
193
|
+
normalizedOptions,
|
|
194
|
+
(_a = viteConfig == null ? void 0 : viteConfig.build) == null ? void 0 : _a.assetsDir
|
|
195
|
+
);
|
|
196
|
+
if (!collectedCSS) return;
|
|
197
|
+
if (processedFileName) {
|
|
198
|
+
server.ws.send({
|
|
199
|
+
type: "update",
|
|
200
|
+
updates: [
|
|
201
|
+
{
|
|
202
|
+
acceptedPath: processedFileName,
|
|
203
|
+
path: processedFileName,
|
|
204
|
+
timestamp: Date.now(),
|
|
205
|
+
type: "css-update"
|
|
206
|
+
}
|
|
207
|
+
]
|
|
208
|
+
});
|
|
175
209
|
}
|
|
176
|
-
|
|
177
|
-
|
|
210
|
+
},
|
|
211
|
+
transformIndexHtml: (html, ctx) => {
|
|
212
|
+
var _a, _b;
|
|
213
|
+
const isDev = !!ctx.server;
|
|
214
|
+
const { processedFileName } = generateCSSAssets(
|
|
215
|
+
stylexRules,
|
|
216
|
+
normalizedOptions,
|
|
217
|
+
(_a = viteConfig == null ? void 0 : viteConfig.build) == null ? void 0 : _a.assetsDir
|
|
218
|
+
);
|
|
219
|
+
if (!processedFileName) {
|
|
178
220
|
return html;
|
|
179
221
|
}
|
|
180
|
-
|
|
222
|
+
if (isDev) {
|
|
223
|
+
wsSend || (wsSend = (_b = ctx.server) == null ? void 0 : _b.ws.send.bind(ctx.server.ws));
|
|
224
|
+
cssFileName || (cssFileName = processedFileName);
|
|
225
|
+
}
|
|
181
226
|
return [
|
|
182
227
|
{
|
|
183
228
|
tag: "link",
|
|
184
229
|
attrs: {
|
|
185
230
|
rel: "stylesheet",
|
|
186
|
-
href:
|
|
231
|
+
href: processedFileName
|
|
187
232
|
},
|
|
188
233
|
injectTo: "head"
|
|
189
234
|
}
|
|
@@ -232,6 +277,34 @@ var unpluginFactory = (options = {}) => {
|
|
|
232
277
|
}
|
|
233
278
|
};
|
|
234
279
|
};
|
|
280
|
+
function generateCSSAssets(stylexRules, normalizedOptions, assetsDir) {
|
|
281
|
+
const collectedCSS = getStyleXRules(stylexRules, normalizedOptions.useCSSLayers);
|
|
282
|
+
const processedFileName = getProcessedFileName(normalizedOptions, collectedCSS || "", assetsDir);
|
|
283
|
+
return { processedFileName, collectedCSS };
|
|
284
|
+
}
|
|
285
|
+
function hasStyleXCode(normalizedOptions, inputCode) {
|
|
286
|
+
var _a;
|
|
287
|
+
return (_a = normalizedOptions.rsOptions.importSources) == null ? void 0 : _a.some(
|
|
288
|
+
(importName) => typeof importName === "string" ? inputCode.includes(importName) : inputCode.includes(importName.from)
|
|
289
|
+
);
|
|
290
|
+
}
|
|
291
|
+
function transformStyleXCode(file, inputCode, normalizedOptions, stylexRules, id) {
|
|
292
|
+
const result = _rscompiler2.default.transform(file, inputCode, normalizedOptions.rsOptions);
|
|
293
|
+
const { metadata } = result;
|
|
294
|
+
if (normalizedOptions.extractCSS && metadata.stylex && metadata.stylex.length > 0) {
|
|
295
|
+
stylexRules[id] = metadata.stylex;
|
|
296
|
+
}
|
|
297
|
+
return result;
|
|
298
|
+
}
|
|
299
|
+
function getProcessedFileName(normalizedOptions, collectedCSS, assetsDir) {
|
|
300
|
+
if (!normalizedOptions.fileName) {
|
|
301
|
+
return null;
|
|
302
|
+
}
|
|
303
|
+
return replaceFileName(
|
|
304
|
+
`${assetsDir ? `${assetsDir}/` : ""}${normalizedOptions.fileName}`,
|
|
305
|
+
collectedCSS || ""
|
|
306
|
+
);
|
|
307
|
+
}
|
|
235
308
|
var unplugin = _unplugin.createUnplugin.call(void 0, unpluginFactory);
|
|
236
309
|
var index_default = unplugin;
|
|
237
310
|
|
package/dist/esbuild.cjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkWQAFPH6Mcjs = require('./chunk-WQAFPH6M.cjs');
|
|
4
4
|
require('./chunk-ZBPRDZS4.cjs');
|
|
5
5
|
|
|
6
6
|
// src/esbuild.ts
|
|
7
7
|
var _unplugin = require('unplugin');
|
|
8
|
-
var esbuild_default = _unplugin.createEsbuildPlugin.call(void 0,
|
|
8
|
+
var esbuild_default = _unplugin.createEsbuildPlugin.call(void 0, _chunkWQAFPH6Mcjs.unpluginFactory);
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
exports.default = esbuild_default;
|
package/dist/esbuild.js
CHANGED
package/dist/farm.cjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkWQAFPH6Mcjs = require('./chunk-WQAFPH6M.cjs');
|
|
4
4
|
require('./chunk-ZBPRDZS4.cjs');
|
|
5
5
|
|
|
6
6
|
// src/farm.ts
|
|
7
7
|
var _unplugin = require('unplugin');
|
|
8
|
-
var farm_default = _unplugin.createFarmPlugin.call(void 0,
|
|
8
|
+
var farm_default = _unplugin.createFarmPlugin.call(void 0, _chunkWQAFPH6Mcjs.unpluginFactory);
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
exports.default = farm_default;
|
package/dist/farm.js
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkWQAFPH6Mcjs = require('./chunk-WQAFPH6M.cjs');
|
|
6
6
|
require('./chunk-ZBPRDZS4.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
exports.default =
|
|
11
|
+
exports.default = _chunkWQAFPH6Mcjs.index_default; exports.unplugin = _chunkWQAFPH6Mcjs.unplugin; exports.unpluginFactory = _chunkWQAFPH6Mcjs.unpluginFactory;
|
package/dist/index.js
CHANGED
package/dist/nuxt.cjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkLNLTP2IKcjs = require('./chunk-LNLTP2IK.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
7
|
-
require('./chunk-
|
|
6
|
+
var _chunk2W5DLJJ7cjs = require('./chunk-2W5DLJJ7.cjs');
|
|
7
|
+
require('./chunk-WQAFPH6M.cjs');
|
|
8
8
|
require('./chunk-ZBPRDZS4.cjs');
|
|
9
9
|
|
|
10
10
|
// src/nuxt.ts
|
|
@@ -19,8 +19,8 @@ var nuxt_default = _kit.defineNuxtModule.call(void 0, {
|
|
|
19
19
|
// ...default options
|
|
20
20
|
},
|
|
21
21
|
setup(options, _nuxt) {
|
|
22
|
-
_kit.addVitePlugin.call(void 0, () =>
|
|
23
|
-
_kit.addWebpackPlugin.call(void 0, () =>
|
|
22
|
+
_kit.addVitePlugin.call(void 0, () => _chunkLNLTP2IKcjs.vite_default.call(void 0, options));
|
|
23
|
+
_kit.addWebpackPlugin.call(void 0, () => _chunk2W5DLJJ7cjs.webpack_default.call(void 0, options));
|
|
24
24
|
}
|
|
25
25
|
});
|
|
26
26
|
|
package/dist/nuxt.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
vite_default
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-B7JMN6R2.js";
|
|
4
4
|
import {
|
|
5
5
|
webpack_default
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-ZHPGSPKE.js";
|
|
7
|
+
import "./chunk-E3GW43UE.js";
|
|
8
8
|
import "./chunk-6F4PWJZI.js";
|
|
9
9
|
|
|
10
10
|
// src/nuxt.ts
|
package/dist/rollup.cjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkWQAFPH6Mcjs = require('./chunk-WQAFPH6M.cjs');
|
|
4
4
|
require('./chunk-ZBPRDZS4.cjs');
|
|
5
5
|
|
|
6
6
|
// src/rollup.ts
|
|
7
7
|
var _unplugin = require('unplugin');
|
|
8
|
-
var rollup_default = _unplugin.createRollupPlugin.call(void 0,
|
|
8
|
+
var rollup_default = _unplugin.createRollupPlugin.call(void 0, _chunkWQAFPH6Mcjs.unpluginFactory);
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
exports.default = rollup_default;
|
package/dist/rollup.js
CHANGED
package/dist/rspack.cjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkWQAFPH6Mcjs = require('./chunk-WQAFPH6M.cjs');
|
|
4
4
|
require('./chunk-ZBPRDZS4.cjs');
|
|
5
5
|
|
|
6
6
|
// src/rspack.ts
|
|
7
7
|
var _unplugin = require('unplugin');
|
|
8
|
-
var rspack_default = _unplugin.createRspackPlugin.call(void 0,
|
|
8
|
+
var rspack_default = _unplugin.createRspackPlugin.call(void 0, _chunkWQAFPH6Mcjs.unpluginFactory);
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
exports.default = rspack_default;
|
package/dist/rspack.js
CHANGED
package/dist/vite.cjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('./chunk-
|
|
3
|
+
var _chunkLNLTP2IKcjs = require('./chunk-LNLTP2IK.cjs');
|
|
4
|
+
require('./chunk-WQAFPH6M.cjs');
|
|
5
5
|
require('./chunk-ZBPRDZS4.cjs');
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
exports.default =
|
|
8
|
+
exports.default = _chunkLNLTP2IKcjs.vite_default;
|
|
9
9
|
|
|
10
10
|
module.exports = exports.default;
|
package/dist/vite.js
CHANGED
package/dist/webpack.cjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('./chunk-
|
|
3
|
+
var _chunk2W5DLJJ7cjs = require('./chunk-2W5DLJJ7.cjs');
|
|
4
|
+
require('./chunk-WQAFPH6M.cjs');
|
|
5
5
|
require('./chunk-ZBPRDZS4.cjs');
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
exports.default =
|
|
8
|
+
exports.default = _chunk2W5DLJJ7cjs.webpack_default;
|
|
9
9
|
|
|
10
10
|
module.exports = exports.default;
|
package/dist/webpack.js
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stylexswc/unplugin",
|
|
3
3
|
"description": "Unplugin for StyleX RS compiler",
|
|
4
|
-
"version": "0.10.
|
|
4
|
+
"version": "0.10.3",
|
|
5
5
|
"private": false,
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"sideEffects": false,
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
},
|
|
75
75
|
"dependencies": {
|
|
76
76
|
"@stylexjs/babel-plugin": "^0.14.1",
|
|
77
|
-
"@stylexswc/rs-compiler": "0.10.
|
|
77
|
+
"@stylexswc/rs-compiler": "0.10.3",
|
|
78
78
|
"unplugin": "^2.3.5",
|
|
79
79
|
"vite": "^6.3.5",
|
|
80
80
|
"vite-plugin-inspect": "^11.3.0"
|