@stylexswc/nextjs-plugin 0.6.1 → 0.6.2-rc.4

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;AAqFpE,QAAA,MAAM,UAAU,mBACG,kBAAkB,mBACtB,UAAU,KAAQ,UA+I9B,CAAC;AAEJ,eAAe,UAAU,CAAC"}
package/dist/index.js CHANGED
@@ -41,7 +41,9 @@ const getSupportedBrowsers = (dir, isDevelopment) => {
41
41
  env: isDevelopment ? 'development' : 'production',
42
42
  });
43
43
  }
44
- catch { }
44
+ catch {
45
+ // Ignore
46
+ }
45
47
  };
46
48
  const getNextMiniCssExtractPlugin = (isDev) => {
47
49
  // Use own MiniCssExtractPlugin to ensure HMR works
@@ -104,14 +106,16 @@ const withStyleX = (pluginOptions) => (nextConfig = {}) => {
104
106
  config = nextConfig.webpack(config, ctx);
105
107
  }
106
108
  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'));
109
+ if (pluginOptions?.rsOptions?.debug || process.env.STYLEX_DEBUG) {
110
+ console.log([
111
+ '!!!GETTING WEBPACK CONFIG!!!',
112
+ '======================',
113
+ `Count: ${++count}`,
114
+ `Build ID: ${buildId}`,
115
+ `Server: ${isServer}`,
116
+ `Env: ${dev ? 'dev' : 'prod'}`,
117
+ ].join('\n'));
118
+ }
115
119
  // For some reason, Next 11.0.1 has `config.optimization.splitChunks`
116
120
  // set to `false` when webpack 5 is enabled.
117
121
  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.4",
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.4",
13
+ "@stylexswc/rs-compiler": "0.6.2-rc.4",
14
+ "@stylexswc/typescript-config": "0.6.2-rc.4",
15
+ "@stylexswc/webpack-plugin": "0.6.2-rc.4",
16
16
  "@types/babel__core": "^7.20.5",
17
17
  "@types/node": "^22.5.1",
18
18
  "next": "^15.1.2",
@@ -45,9 +45,13 @@
45
45
  "sideEffects": false,
46
46
  "scripts": {
47
47
  "build": "scripty --ts",
48
+ "check:artifacts": "scripty",
48
49
  "clean": "del-cli dist",
50
+ "lint": "eslint . --color",
51
+ "lint:check": "eslint . --color --format json --output-file dist/eslint_report.json",
49
52
  "precommit": "lint-staged",
50
53
  "prepush": "lint-prepush",
51
- "test": "echo \"Error: no test specified\" && exit 0"
54
+ "test": "echo \"Error: no test specified\" && exit 0",
55
+ "typecheck": "scripty"
52
56
  }
53
57
  }