@stylexswc/turbopack-plugin 0.15.1-rc.2 → 0.15.2-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.
Files changed (2) hide show
  1. package/README.md +13 -5
  2. package/package.json +13 -13
package/README.md CHANGED
@@ -1,4 +1,6 @@
1
- # Turbopack Loader with NAPI-RS StyleX compiler integration
1
+ # Turbopack loader with NAPI-RS StyleX compiler integration
2
+
3
+ > Part of the [StyleX SWC Plugin](https://github.com/Dwlad90/stylex-swc-plugin#readme) workspace
2
4
 
3
5
  `Turbopack loader` for an unofficial
4
6
  [`napi-rs`](https://github.com/dwlad90/stylex-swc-plugin/tree/develop/crates/stylex-rs-compiler)
@@ -20,13 +22,14 @@ npm install --save-dev @stylexswc/rs-compiler
20
22
 
21
23
  ## Usage
22
24
 
23
- > [!IMPORTANT] **Turbopack Limitation**: Turbopack does not support webpack
25
+ > [!IMPORTANT]
26
+ > **Turbopack Limitation**: Turbopack does not support webpack
24
27
  > plugins
25
28
  > ([see Next.js docs](https://nextjs.org/docs/app/api-reference/turbopack#webpack-plugins)).
26
29
  > This loader only compiles StyleX code but **does not extract CSS**.
27
30
  >
28
31
  > For CSS extraction, you must use the
29
- > [`@stylexswc/postcss-plugin`](../postcss-plugin) in your `postcss.config.js`:
32
+ > [`@stylexswc/postcss-plugin`](https://github.com/Dwlad90/stylex-swc-plugin/tree/develop/packages/postcss-plugin#readme) in your `postcss.config.js`:
30
33
  >
31
34
  > ```javascript
32
35
  > // postcss.config.js
@@ -84,7 +87,8 @@ export default nextConfig;
84
87
  compiler. For standard StyleX options, see the
85
88
  [official StyleX documentation](https://stylexjs.com/docs/api/configuration/babel-plugin/).
86
89
 
87
- > [!NOTE] **New Features:** The `include` and `exclude` options are exclusive to
90
+ > [!NOTE]
91
+ > **New Features:** The `include` and `exclude` options are exclusive to
88
92
  > this NAPI-RS compiler implementation and are not available in the official
89
93
  > StyleX Babel plugin.
90
94
 
@@ -117,7 +121,7 @@ export default nextConfig;
117
121
 
118
122
  #### `useCSSLayers`
119
123
 
120
- - Type: `boolean`
124
+ - Type: `UseLayersType`
121
125
  - Default: `false`
122
126
  - Description: Enables CSS cascade layers support for better style isolation.
123
127
 
@@ -288,3 +292,7 @@ export default nextConfig;
288
292
 
289
293
  This loader was inspired by
290
294
  [`stylex-webpack`](https://github.com/SukkaW/stylex-webpack).
295
+
296
+ ## License
297
+
298
+ MIT — see [LICENSE](https://github.com/Dwlad90/stylex-swc-plugin/blob/develop/LICENSE)
package/package.json CHANGED
@@ -1,26 +1,26 @@
1
1
  {
2
2
  "name": "@stylexswc/turbopack-plugin",
3
3
  "description": "StyleX turbopack loader with NAPI-RS compiler",
4
- "version": "0.15.1-rc.2",
4
+ "version": "0.15.2-rc.1",
5
5
  "private": false,
6
6
  "license": "MIT",
7
7
  "sideEffects": false,
8
- "files": [
9
- "dist"
10
- ],
11
8
  "exports": {
12
9
  ".": {
10
+ "types": "./dist/index.d.ts",
13
11
  "import": "./dist/index.js",
14
- "require": "./dist/index.js",
15
- "types": "./dist/index.d.ts"
12
+ "require": "./dist/index.js"
16
13
  },
17
14
  "./loader": {
15
+ "types": "./dist/turbopack-loader.d.ts",
18
16
  "import": "./dist/turbopack-loader.js",
19
- "require": "./dist/turbopack-loader.js",
20
- "types": "./dist/turbopack-loader.d.ts"
17
+ "require": "./dist/turbopack-loader.js"
21
18
  },
22
19
  "./package.json": "./package.json"
23
20
  },
21
+ "files": [
22
+ "dist"
23
+ ],
24
24
  "publishConfig": {
25
25
  "registry": "https://registry.npmjs.org/",
26
26
  "access": "public"
@@ -31,17 +31,17 @@
31
31
  }
32
32
  },
33
33
  "dependencies": {
34
- "@stylexswc/rs-compiler": "0.15.1-rc.2",
34
+ "@stylexswc/rs-compiler": "0.15.2-rc.1",
35
35
  "loader-utils": "^3.3.1"
36
36
  },
37
37
  "devDependencies": {
38
- "webpack": "^5.105.3",
39
38
  "@babel/types": "^7.29.0",
40
- "@stylexswc/eslint-config": "0.15.1-rc.2",
41
- "@stylexswc/typescript-config": "0.15.1-rc.2",
39
+ "@stylexswc/eslint-config": "0.15.2-rc.1",
40
+ "@stylexswc/typescript-config": "0.15.2-rc.1",
42
41
  "@types/babel__core": "^7.20.5",
43
42
  "@types/loader-utils": "^3.0.0",
44
- "@types/node": "^25.3.3"
43
+ "@types/node": "^25.3.3",
44
+ "webpack": "^5.105.3"
45
45
  },
46
46
  "keywords": [
47
47
  "stylex",