@stylexswc/unplugin 0.7.0-rc.2 → 0.7.0-rc.4

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.d.cts CHANGED
@@ -1,6 +1,18 @@
1
1
  import { UnpluginStylexRSOptions } from './types.cjs';
2
+ import { Plugin } from 'vite';
2
3
  import '@stylexswc/rs-compiler';
3
4
 
4
- declare const _default: (options: UnpluginStylexRSOptions) => any;
5
+ declare const _default: (options: UnpluginStylexRSOptions) => {
6
+ name: string;
7
+ hooks: {
8
+ 'astro:config:setup': (astro: {
9
+ config: {
10
+ vite: {
11
+ plugins: (Plugin<unknown> | Plugin<unknown>[])[];
12
+ };
13
+ };
14
+ }) => Promise<void>;
15
+ };
16
+ };
5
17
 
6
18
  export = _default;
package/dist/astro.d.ts CHANGED
@@ -1,6 +1,18 @@
1
1
  import { UnpluginStylexRSOptions } from './types.js';
2
+ import { Plugin } from 'vite';
2
3
  import '@stylexswc/rs-compiler';
3
4
 
4
- declare const _default: (options: UnpluginStylexRSOptions) => any;
5
+ declare const _default: (options: UnpluginStylexRSOptions) => {
6
+ name: string;
7
+ hooks: {
8
+ 'astro:config:setup': (astro: {
9
+ config: {
10
+ vite: {
11
+ plugins: (Plugin<unknown> | Plugin<unknown>[])[];
12
+ };
13
+ };
14
+ }) => Promise<void>;
15
+ };
16
+ };
5
17
 
6
18
  export { _default as default };
package/dist/nuxt.d.cts CHANGED
@@ -2,8 +2,7 @@ import * as _nuxt_schema from '@nuxt/schema';
2
2
  import { UnpluginStylexRSOptions } from './types.cjs';
3
3
  import '@stylexswc/rs-compiler';
4
4
 
5
- interface ModuleOptions extends UnpluginStylexRSOptions {
6
- }
7
- declare const _default: _nuxt_schema.NuxtModule<ModuleOptions, ModuleOptions, false>;
5
+ type ModuleOptions = UnpluginStylexRSOptions;
6
+ declare const _default: _nuxt_schema.NuxtModule<UnpluginStylexRSOptions, UnpluginStylexRSOptions, false>;
8
7
 
9
8
  export { type ModuleOptions, _default as default };
package/dist/nuxt.d.ts CHANGED
@@ -2,8 +2,7 @@ import * as _nuxt_schema from '@nuxt/schema';
2
2
  import { UnpluginStylexRSOptions } from './types.js';
3
3
  import '@stylexswc/rs-compiler';
4
4
 
5
- interface ModuleOptions extends UnpluginStylexRSOptions {
6
- }
7
- declare const _default: _nuxt_schema.NuxtModule<ModuleOptions, ModuleOptions, false>;
5
+ type ModuleOptions = UnpluginStylexRSOptions;
6
+ declare const _default: _nuxt_schema.NuxtModule<UnpluginStylexRSOptions, UnpluginStylexRSOptions, false>;
8
7
 
9
8
  export { type ModuleOptions, _default as default };
package/package.json CHANGED
@@ -1,33 +1,12 @@
1
1
  {
2
2
  "name": "@stylexswc/unplugin",
3
- "type": "module",
4
- "version": "0.7.0-rc.2",
5
3
  "description": "Unplugin for StyleX RS compiler",
6
- "license": "MIT",
4
+ "version": "0.7.0-rc.4",
7
5
  "private": false,
8
- "homepage": "https://github.com/Dwlad90/stylex-swc-plugin/tree/develop/packages/unplugin#readme",
9
- "publishConfig": {
10
- "registry": "https://registry.npmjs.org/",
11
- "access": "public"
12
- },
13
- "repository": "https://github.com/Dwlad90/stylex-swc-plugin",
14
- "bugs": {
15
- "url": "https://github.com/Dwlad90/stylex-swc-plugin/issues"
16
- },
6
+ "license": "MIT",
17
7
  "sideEffects": false,
18
- "keywords": [
19
- "unplugin",
20
- "vite",
21
- "webpack",
22
- "rollup",
23
- "transform",
24
- "stylex",
25
- "farm",
26
- "esbuild",
27
- "rspack",
28
- "rsbuild",
29
- "swc"
30
- ],
8
+ "module": "./dist/index.js",
9
+ "types": "./dist/index.d.ts",
31
10
  "exports": {
32
11
  ".": {
33
12
  "types": "./dist/index.d.ts",
@@ -81,55 +60,21 @@
81
60
  },
82
61
  "./*": "./*"
83
62
  },
84
- "main": "./dist/index.js",
85
- "module": "./dist/index.js",
86
- "types": "./dist/index.d.ts",
87
- "typesVersions": {
88
- "*": {
89
- "*": [
90
- "./dist/*",
91
- "./*"
92
- ]
93
- }
94
- },
95
63
  "files": [
96
64
  "dist"
97
65
  ],
98
- "peerDependencies": {
99
- "@farmfe/core": ">=1.6.6",
100
- "@nuxt/kit": "^3",
101
- "@nuxt/schema": "^3",
102
- "esbuild": "*",
103
- "rollup": "^3",
104
- "vite": ">=3",
105
- "webpack": "^4 || ^5"
66
+ "publishConfig": {
67
+ "registry": "https://registry.npmjs.org/",
68
+ "access": "public"
106
69
  },
107
- "peerDependenciesMeta": {
108
- "@farmfe/core": {
109
- "optional": true
110
- },
111
- "@nuxt/kit": {
112
- "optional": true
113
- },
114
- "@nuxt/schema": {
115
- "optional": true
116
- },
117
- "esbuild": {
118
- "optional": true
119
- },
120
- "rollup": {
121
- "optional": true
122
- },
123
- "vite": {
124
- "optional": true
125
- },
126
- "webpack": {
127
- "optional": true
70
+ "config": {
71
+ "scripty": {
72
+ "path": "../../scripts/packages"
128
73
  }
129
74
  },
130
75
  "dependencies": {
131
76
  "@stylexjs/babel-plugin": "^0.11.1",
132
- "@stylexswc/rs-compiler": "0.7.0-rc.2",
77
+ "@stylexswc/rs-compiler": "0.7.0-rc.4",
133
78
  "unplugin": "^2.2.0",
134
79
  "vite": "^6.2.1",
135
80
  "vite-plugin-inspect": "^11.0.0"
@@ -150,25 +95,78 @@
150
95
  "vitest": "^3.0.8",
151
96
  "webpack": "^5.98.0"
152
97
  },
153
- "config": {
154
- "scripty": {
155
- "path": "../../scripts/packages"
98
+ "peerDependencies": {
99
+ "@farmfe/core": "^1.6.6",
100
+ "@nuxt/kit": "^3.16.0",
101
+ "@nuxt/schema": "^3.16.0",
102
+ "esbuild": "^0.25.0",
103
+ "rollup": "^4.34.9",
104
+ "vite": "^6.2.1",
105
+ "webpack": "^5.98.0"
106
+ },
107
+ "bugs": "https://github.com/Dwlad90/stylex-swc-plugin/issues",
108
+ "homepage": "https://github.com/Dwlad90/stylex-swc-plugin/tree/develop/packages/unplugin#readme",
109
+ "keywords": [
110
+ "esbuild",
111
+ "farm",
112
+ "rollup",
113
+ "rsbuild",
114
+ "rspack",
115
+ "stylex",
116
+ "swc",
117
+ "transform",
118
+ "unplugin",
119
+ "vite",
120
+ "webpack"
121
+ ],
122
+ "main": "./dist/index.js",
123
+ "peerDependenciesMeta": {
124
+ "@farmfe/core": {
125
+ "optional": true
126
+ },
127
+ "@nuxt/kit": {
128
+ "optional": true
129
+ },
130
+ "@nuxt/schema": {
131
+ "optional": true
132
+ },
133
+ "esbuild": {
134
+ "optional": true
135
+ },
136
+ "rollup": {
137
+ "optional": true
138
+ },
139
+ "vite": {
140
+ "optional": true
141
+ },
142
+ "webpack": {
143
+ "optional": true
144
+ }
145
+ },
146
+ "repository": "https://github.com/Dwlad90/stylex-swc-plugin",
147
+ "type": "module",
148
+ "typesVersions": {
149
+ "*": {
150
+ "*": [
151
+ "./dist/*",
152
+ "./*"
153
+ ]
156
154
  }
157
155
  },
158
156
  "scripts": {
159
157
  "build": "tsup",
160
- "dev": "tsup --watch src",
161
158
  "build:fix": "esno scripts/postbuild.ts",
162
159
  "check:artifacts": "scripty",
160
+ "dev": "tsup --watch src",
163
161
  "lint": "eslint . --color",
164
162
  "lint:check": "eslint . --color --format json --output-file dist/eslint_report.json",
165
163
  "play": "pnpm -C playground run dev",
166
164
  "postbuild": "pnpm run check:artifacts",
167
165
  "start": "esno src/index.ts",
168
166
  "test": "vitest --run",
169
- "test:watch": "vitest",
170
- "test:update": "vitest -u",
171
167
  "test:cov": "vitest --coverage",
168
+ "test:update": "vitest -u",
169
+ "test:watch": "vitest",
172
170
  "typecheck": "scripty"
173
171
  }
174
172
  }