@stylexswc/nextjs-plugin 0.6.6 → 0.7.0-dev.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 +2 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +17 -7
- package/package.json +10 -10
package/README.md
CHANGED
|
@@ -85,7 +85,8 @@ npm install --save-dev @stylexswc/nextjs-plugin
|
|
|
85
85
|
|
|
86
86
|
#### `transformCss`
|
|
87
87
|
|
|
88
|
-
- Type:
|
|
88
|
+
- Type:
|
|
89
|
+
`(css: string, filePath: string | undefined) => string | Buffer | Promise<string | Buffer>`
|
|
89
90
|
- Optional
|
|
90
91
|
- Description: Custom CSS transformation function. Since the plugin injects CSS
|
|
91
92
|
after all loaders, use this to apply PostCSS or other CSS transformations.
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,UAAU,EAAwB,MAAM,gCAAgC,CAAC;AACvF,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAqFpE,QAAA,MAAM,UAAU,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,UAAU,EAAwB,MAAM,gCAAgC,CAAC;AACvF,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAqFpE,QAAA,MAAM,UAAU,GACb,gBAAgB,kBAAkB,MAClC,aAAY,UAAe,KAAG,UAsJ9B,CAAC;AAEJ,eAAe,UAAU,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
15
15
|
}) : function(o, v) {
|
|
16
16
|
o["default"] = v;
|
|
17
17
|
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
};
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
25
35
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
26
36
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
37
|
};
|
package/package.json
CHANGED
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stylexswc/nextjs-plugin",
|
|
3
3
|
"description": "StyleX NextJS plugin with NAPI-RS compiler",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.7.0-dev.1",
|
|
5
5
|
"config": {
|
|
6
6
|
"scripty": {
|
|
7
7
|
"path": "../../scripts/packages"
|
|
8
8
|
}
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"@stylexswc/rs-compiler": "0.
|
|
12
|
-
"@stylexswc/webpack-plugin": "0.
|
|
11
|
+
"@stylexswc/rs-compiler": "0.7.0-dev.1",
|
|
12
|
+
"@stylexswc/webpack-plugin": "0.7.0-dev.1"
|
|
13
13
|
},
|
|
14
14
|
"devDependencies": {
|
|
15
|
-
"@babel/types": "^7.
|
|
16
|
-
"@stylexswc/eslint-config": "0.
|
|
17
|
-
"@stylexswc/typescript-config": "0.
|
|
15
|
+
"@babel/types": "^7.26.9",
|
|
16
|
+
"@stylexswc/eslint-config": "0.7.0-dev.1",
|
|
17
|
+
"@stylexswc/typescript-config": "0.7.0-dev.1",
|
|
18
18
|
"@types/babel__core": "^7.20.5",
|
|
19
|
-
"@types/node": "^22.
|
|
20
|
-
"next": "
|
|
21
|
-
"postcss": "^8.
|
|
19
|
+
"@types/node": "^22.13.9",
|
|
20
|
+
"next": "15.2.1",
|
|
21
|
+
"postcss": "^8.5.3",
|
|
22
22
|
"react": "^19.0.0",
|
|
23
23
|
"react-dom": "^19.0.0",
|
|
24
|
-
"webpack": "^5.
|
|
24
|
+
"webpack": "^5.98.0"
|
|
25
25
|
},
|
|
26
26
|
"files": [
|
|
27
27
|
"dist"
|