@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.
@@ -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,UA6I9B,CAAC;AAEJ,eAAe,UAAU,CAAC"}
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
- console.log([
108
- '!!!GETTING WEBPACK CONFIG!!!',
109
- '======================',
110
- `Count: ${++count}`,
111
- `Build ID: ${buildId}`,
112
- `Server: ${isServer}`,
113
- `Env: ${dev ? 'dev' : 'prod'}`,
114
- ].join('\n'));
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.1",
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.1",
13
- "@stylexswc/rs-compiler": "0.6.1",
14
- "@stylexswc/typescript-config": "0.6.1",
15
- "@stylexswc/webpack-plugin": "0.6.1",
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",