@stylexswc/nextjs-plugin 0.6.1 → 0.6.2-rc.2
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/index.d.ts.map +1 -1
- package/dist/index.js +10 -8
- package/package.json +5 -5
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;AAmFpE,QAAA,MAAM,UAAU,mBACG,kBAAkB,mBACtB,UAAU,KAAQ,
|
|
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;AAmFpE,QAAA,MAAM,UAAU,mBACG,kBAAkB,mBACtB,UAAU,KAAQ,UA+I9B,CAAC;AAEJ,eAAe,UAAU,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -104,14 +104,16 @@ const withStyleX = (pluginOptions) => (nextConfig = {}) => {
|
|
|
104
104
|
config = nextConfig.webpack(config, ctx);
|
|
105
105
|
}
|
|
106
106
|
const { buildId, dev, isServer } = ctx;
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
107
|
+
if (pluginOptions?.rsOptions?.debug || process.env.STYLEX_DEBUG) {
|
|
108
|
+
console.log([
|
|
109
|
+
'!!!GETTING WEBPACK CONFIG!!!',
|
|
110
|
+
'======================',
|
|
111
|
+
`Count: ${++count}`,
|
|
112
|
+
`Build ID: ${buildId}`,
|
|
113
|
+
`Server: ${isServer}`,
|
|
114
|
+
`Env: ${dev ? 'dev' : 'prod'}`,
|
|
115
|
+
].join('\n'));
|
|
116
|
+
}
|
|
115
117
|
// For some reason, Next 11.0.1 has `config.optimization.splitChunks`
|
|
116
118
|
// set to `false` when webpack 5 is enabled.
|
|
117
119
|
config.optimization ||= {};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stylexswc/nextjs-plugin",
|
|
3
3
|
"description": "StyleX NextJS plugin with NAPI-RS compiler",
|
|
4
|
-
"version": "0.6.
|
|
4
|
+
"version": "0.6.2-rc.2",
|
|
5
5
|
"config": {
|
|
6
6
|
"scripty": {
|
|
7
7
|
"path": "../../scripts/packages"
|
|
@@ -9,10 +9,10 @@
|
|
|
9
9
|
},
|
|
10
10
|
"devDependencies": {
|
|
11
11
|
"@babel/types": "^7.23.9",
|
|
12
|
-
"@stylexswc/eslint-config": "0.6.
|
|
13
|
-
"@stylexswc/rs-compiler": "0.6.
|
|
14
|
-
"@stylexswc/typescript-config": "0.6.
|
|
15
|
-
"@stylexswc/webpack-plugin": "0.6.
|
|
12
|
+
"@stylexswc/eslint-config": "0.6.2-rc.2",
|
|
13
|
+
"@stylexswc/rs-compiler": "0.6.2-rc.2",
|
|
14
|
+
"@stylexswc/typescript-config": "0.6.2-rc.2",
|
|
15
|
+
"@stylexswc/webpack-plugin": "0.6.2-rc.2",
|
|
16
16
|
"@types/babel__core": "^7.20.5",
|
|
17
17
|
"@types/node": "^22.5.1",
|
|
18
18
|
"next": "^15.1.2",
|