@plumeria/next-plugin 17.0.1 → 18.0.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.
- package/README.md +3 -5
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -13,8 +13,6 @@ yarn add -D @plumeria/next-plugin
|
|
|
13
13
|
pnpm add -D @plumeria/next-plugin
|
|
14
14
|
```
|
|
15
15
|
|
|
16
|
-
No PostCSS setup is required. `@plumeria/postcss-plugin` was removed in 17.0.0 — if you are upgrading, delete `postcss.config.js` and the `@plumeria` at-rule from your global stylesheet.
|
|
17
|
-
|
|
18
16
|
## How to Use
|
|
19
17
|
|
|
20
18
|
Wrap your config with `withPlumeria`. It works with both Turbopack and Webpack.
|
|
@@ -35,7 +33,7 @@ Then declare the styling prop once in your project. `@plumeria/core` ships no pr
|
|
|
35
33
|
|
|
36
34
|
```ts
|
|
37
35
|
// plumeria.d.ts
|
|
38
|
-
/// <reference types="@plumeria/core/style
|
|
36
|
+
/// <reference types="@plumeria/core/class-style" />
|
|
39
37
|
```
|
|
40
38
|
|
|
41
39
|
## Options
|
|
@@ -44,17 +42,17 @@ Options are passed as the second argument.
|
|
|
44
42
|
|
|
45
43
|
```ts
|
|
46
44
|
export default withPlumeria(nextConfig, {
|
|
47
|
-
styleProp: 'sx',
|
|
48
45
|
include: ['./src/**/*.{ts,tsx}'],
|
|
49
46
|
exclude: ['**/node_modules/**', '**/.next/**'],
|
|
47
|
+
styleProp: 'sx',
|
|
50
48
|
});
|
|
51
49
|
```
|
|
52
50
|
|
|
53
51
|
| Option | Default | Description |
|
|
54
52
|
| :-- | :-- | :-- |
|
|
55
|
-
| `styleProp` | `'styleName'` | The JSX prop that carries styles. |
|
|
56
53
|
| `include` | all `js/jsx/ts/tsx` | Globs the stylesheet is compiled from. |
|
|
57
54
|
| `exclude` | `node_modules`, `dist`, `.next` | Globs excluded from that compilation. |
|
|
55
|
+
| `styleProp` | `'classStyle'` | The JSX prop that carries styles. |
|
|
58
56
|
|
|
59
57
|
### styleProp
|
|
60
58
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@plumeria/next-plugin",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "18.0.1",
|
|
4
4
|
"description": "Plumeria Next.js plugin",
|
|
5
5
|
"author": "Refirst 11",
|
|
6
6
|
"license": "MIT",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"dist/"
|
|
30
30
|
],
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@plumeria/turbopack-loader": "^
|
|
32
|
+
"@plumeria/turbopack-loader": "^18.0.1"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
35
|
"next": "^16.2.10",
|