@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 CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkU6CL3DR6cjs = require('./chunk-U6CL3DR6.cjs');
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(_chunkU6CL3DR6cjs.index_default.vite(options));
13
+ astro.config.vite.plugins.push(_chunkWQAFPH6Mcjs.index_default.vite(options));
14
14
  }
15
15
  }
16
16
  });
package/dist/astro.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  index_default
3
- } from "./chunk-YKHCVYVX.js";
3
+ } from "./chunk-E3GW43UE.js";
4
4
  import "./chunk-6F4PWJZI.js";
5
5
 
6
6
  // src/astro.ts
@@ -1,10 +1,10 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkU6CL3DR6cjs = require('./chunk-U6CL3DR6.cjs');
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, _chunkU6CL3DR6cjs.unpluginFactory);
7
+ var webpack_default = _unplugin.createWebpackPlugin.call(void 0, _chunkWQAFPH6Mcjs.unpluginFactory);
8
8
 
9
9
 
10
10
 
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  unpluginFactory
3
- } from "./chunk-YKHCVYVX.js";
3
+ } from "./chunk-E3GW43UE.js";
4
4
 
5
5
  // src/vite.ts
6
6
  import { createVitePlugin } from "unplugin";
@@ -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
- var _a;
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, metadata, map } = stylexRsCompiler.transform(
98
+ const { code, map } = transformStyleXCode(
101
99
  file,
102
100
  inputCode,
103
- normalizedOptions.rsOptions
101
+ normalizedOptions,
102
+ stylexRules,
103
+ id
104
104
  );
105
- if (normalizedOptions.extractCSS && metadata.stylex && metadata.stylex.length > 0) {
106
- stylexRules[id] = metadata.stylex;
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 = getStyleXRules(stylexRules, normalizedOptions.useCSSLayers);
134
+ const { processedFileName, collectedCSS } = generateCSSAssets(stylexRules, normalizedOptions);
125
135
  if (!collectedCSS) return;
126
136
  hasCssToExtract = true;
127
- const processedFileName = replaceFileName(normalizedOptions.fileName, collectedCSS);
128
- this.emitFile({
129
- fileName: processedFileName,
130
- source: collectedCSS,
131
- type: "asset"
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, _b;
147
- const fileName = `${(_b = (_a = viteConfig == null ? void 0 : viteConfig.build) == null ? void 0 : _a.assetsDir) != null ? _b : "assets"}/${normalizedOptions.fileName}`;
148
- const collectedCSS = getStyleXRules(stylexRules, normalizedOptions.useCSSLayers);
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
- const processedFileName = replaceFileName(fileName, collectedCSS);
151
- this.emitFile({
152
- fileName: processedFileName,
153
- source: collectedCSS,
154
- type: "asset"
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
- transformIndexHtml(html, ctx) {
170
- var _a, _b, _c, _d;
171
- const isDev = !!ctx.server;
172
- const fileName = `${(_b = (_a = viteConfig == null ? void 0 : viteConfig.build) == null ? void 0 : _a.assetsDir) != null ? _b : "assets"}/${normalizedOptions.fileName}`;
173
- if (isDev) {
174
- cssFileName = fileName;
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
- const css = ((_c = ctx.bundle) == null ? void 0 : _c[fileName]) || cssFileName;
177
- if (!css) {
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
- const publicPath = path.posix.join((_d = viteConfig == null ? void 0 : viteConfig.base) != null ? _d : "/", fileName.replace(/\\/g, "/"));
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: publicPath
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 _chunkU6CL3DR6cjs = require('./chunk-U6CL3DR6.cjs');
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, _chunkU6CL3DR6cjs.unpluginFactory);
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
- var _a;
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, metadata, map } = _rscompiler2.default.transform(
98
+ const { code, map } = transformStyleXCode(
101
99
  file,
102
100
  inputCode,
103
- normalizedOptions.rsOptions
101
+ normalizedOptions,
102
+ stylexRules,
103
+ id
104
104
  );
105
- if (normalizedOptions.extractCSS && metadata.stylex && metadata.stylex.length > 0) {
106
- stylexRules[id] = metadata.stylex;
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 = getStyleXRules(stylexRules, normalizedOptions.useCSSLayers);
134
+ const { processedFileName, collectedCSS } = generateCSSAssets(stylexRules, normalizedOptions);
125
135
  if (!collectedCSS) return;
126
136
  hasCssToExtract = true;
127
- const processedFileName = replaceFileName(normalizedOptions.fileName, collectedCSS);
128
- this.emitFile({
129
- fileName: processedFileName,
130
- source: collectedCSS,
131
- type: "asset"
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, _b;
147
- const fileName = `${(_b = (_a = viteConfig == null ? void 0 : viteConfig.build) == null ? void 0 : _a.assetsDir) != null ? _b : "assets"}/${normalizedOptions.fileName}`;
148
- const collectedCSS = getStyleXRules(stylexRules, normalizedOptions.useCSSLayers);
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
- const processedFileName = replaceFileName(fileName, collectedCSS);
151
- this.emitFile({
152
- fileName: processedFileName,
153
- source: collectedCSS,
154
- type: "asset"
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
- transformIndexHtml(html, ctx) {
170
- var _a, _b, _c, _d;
171
- const isDev = !!ctx.server;
172
- const fileName = `${(_b = (_a = viteConfig == null ? void 0 : viteConfig.build) == null ? void 0 : _a.assetsDir) != null ? _b : "assets"}/${normalizedOptions.fileName}`;
173
- if (isDev) {
174
- cssFileName = fileName;
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
- const css = ((_c = ctx.bundle) == null ? void 0 : _c[fileName]) || cssFileName;
177
- if (!css) {
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
- const publicPath = path.posix.join((_d = viteConfig == null ? void 0 : viteConfig.base) != null ? _d : "/", fileName.replace(/\\/g, "/"));
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: publicPath
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
 
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  unpluginFactory
3
- } from "./chunk-YKHCVYVX.js";
3
+ } from "./chunk-E3GW43UE.js";
4
4
 
5
5
  // src/webpack.ts
6
6
  import { createWebpackPlugin } from "unplugin";
package/dist/esbuild.cjs CHANGED
@@ -1,11 +1,11 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkU6CL3DR6cjs = require('./chunk-U6CL3DR6.cjs');
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, _chunkU6CL3DR6cjs.unpluginFactory);
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
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  unpluginFactory
3
- } from "./chunk-YKHCVYVX.js";
3
+ } from "./chunk-E3GW43UE.js";
4
4
  import "./chunk-6F4PWJZI.js";
5
5
 
6
6
  // src/esbuild.ts
package/dist/farm.cjs CHANGED
@@ -1,11 +1,11 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkU6CL3DR6cjs = require('./chunk-U6CL3DR6.cjs');
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, _chunkU6CL3DR6cjs.unpluginFactory);
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
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  unpluginFactory
3
- } from "./chunk-YKHCVYVX.js";
3
+ } from "./chunk-E3GW43UE.js";
4
4
  import "./chunk-6F4PWJZI.js";
5
5
 
6
6
  // src/farm.ts
package/dist/index.cjs CHANGED
@@ -2,10 +2,10 @@
2
2
 
3
3
 
4
4
 
5
- var _chunkU6CL3DR6cjs = require('./chunk-U6CL3DR6.cjs');
5
+ var _chunkWQAFPH6Mcjs = require('./chunk-WQAFPH6M.cjs');
6
6
  require('./chunk-ZBPRDZS4.cjs');
7
7
 
8
8
 
9
9
 
10
10
 
11
- exports.default = _chunkU6CL3DR6cjs.index_default; exports.unplugin = _chunkU6CL3DR6cjs.unplugin; exports.unpluginFactory = _chunkU6CL3DR6cjs.unpluginFactory;
11
+ exports.default = _chunkWQAFPH6Mcjs.index_default; exports.unplugin = _chunkWQAFPH6Mcjs.unplugin; exports.unpluginFactory = _chunkWQAFPH6Mcjs.unpluginFactory;
package/dist/index.js CHANGED
@@ -2,7 +2,7 @@ import {
2
2
  index_default,
3
3
  unplugin,
4
4
  unpluginFactory
5
- } from "./chunk-YKHCVYVX.js";
5
+ } from "./chunk-E3GW43UE.js";
6
6
  import "./chunk-6F4PWJZI.js";
7
7
  export {
8
8
  index_default as default,
package/dist/nuxt.cjs CHANGED
@@ -1,10 +1,10 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunk5G6X3Y54cjs = require('./chunk-5G6X3Y54.cjs');
3
+ var _chunkLNLTP2IKcjs = require('./chunk-LNLTP2IK.cjs');
4
4
 
5
5
 
6
- var _chunk3YSBXRBMcjs = require('./chunk-3YSBXRBM.cjs');
7
- require('./chunk-U6CL3DR6.cjs');
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, () => _chunk5G6X3Y54cjs.vite_default.call(void 0, options));
23
- _kit.addWebpackPlugin.call(void 0, () => _chunk3YSBXRBMcjs.webpack_default.call(void 0, options));
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-YJKH52EW.js";
3
+ } from "./chunk-B7JMN6R2.js";
4
4
  import {
5
5
  webpack_default
6
- } from "./chunk-NV2BW3AB.js";
7
- import "./chunk-YKHCVYVX.js";
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 _chunkU6CL3DR6cjs = require('./chunk-U6CL3DR6.cjs');
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, _chunkU6CL3DR6cjs.unpluginFactory);
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
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  unpluginFactory
3
- } from "./chunk-YKHCVYVX.js";
3
+ } from "./chunk-E3GW43UE.js";
4
4
  import "./chunk-6F4PWJZI.js";
5
5
 
6
6
  // src/rollup.ts
package/dist/rspack.cjs CHANGED
@@ -1,11 +1,11 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkU6CL3DR6cjs = require('./chunk-U6CL3DR6.cjs');
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, _chunkU6CL3DR6cjs.unpluginFactory);
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
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  unpluginFactory
3
- } from "./chunk-YKHCVYVX.js";
3
+ } from "./chunk-E3GW43UE.js";
4
4
  import "./chunk-6F4PWJZI.js";
5
5
 
6
6
  // src/rspack.ts
package/dist/vite.cjs CHANGED
@@ -1,10 +1,10 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunk5G6X3Y54cjs = require('./chunk-5G6X3Y54.cjs');
4
- require('./chunk-U6CL3DR6.cjs');
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 = _chunk5G6X3Y54cjs.vite_default;
8
+ exports.default = _chunkLNLTP2IKcjs.vite_default;
9
9
 
10
10
  module.exports = exports.default;
package/dist/vite.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  vite_default
3
- } from "./chunk-YJKH52EW.js";
4
- import "./chunk-YKHCVYVX.js";
3
+ } from "./chunk-B7JMN6R2.js";
4
+ import "./chunk-E3GW43UE.js";
5
5
  import "./chunk-6F4PWJZI.js";
6
6
  export {
7
7
  vite_default as default
package/dist/webpack.cjs CHANGED
@@ -1,10 +1,10 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunk3YSBXRBMcjs = require('./chunk-3YSBXRBM.cjs');
4
- require('./chunk-U6CL3DR6.cjs');
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 = _chunk3YSBXRBMcjs.webpack_default;
8
+ exports.default = _chunk2W5DLJJ7cjs.webpack_default;
9
9
 
10
10
  module.exports = exports.default;
package/dist/webpack.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  webpack_default
3
- } from "./chunk-NV2BW3AB.js";
4
- import "./chunk-YKHCVYVX.js";
3
+ } from "./chunk-ZHPGSPKE.js";
4
+ import "./chunk-E3GW43UE.js";
5
5
  import "./chunk-6F4PWJZI.js";
6
6
  export {
7
7
  webpack_default as default
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.2",
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.2",
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"