@stylexswc/nextjs-plugin 0.4.1-rc.1 → 0.4.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  # Next.js plugin with NAPI-RS StyleX compiler integration
2
2
 
3
3
  Next.js plugin for an unofficial
4
- [`napi-rs`](https://github.com/dwlad90/stylex-swc-plugin/tree/master/crates/stylex-rs-compiler)
4
+ [`napi-rs`](https://github.com/dwlad90/stylex-swc-plugin/tree/develop/crates/stylex-rs-compiler)
5
5
  compiler that includes the StyleX SWC code transformation under the hood.
6
6
 
7
7
  ## Overview
@@ -76,4 +76,4 @@ module.exports = stylexPlugin({
76
76
  ## Documentation
77
77
 
78
78
  * [StyleX Documentation](https://stylexjs.com)
79
- * [NAPI-RS compiler for StyleX](https://github.com/Dwlad90/stylex-swc-plugin/tree/master/crates/stylex-rs-compiler)
79
+ * [NAPI-RS compiler for StyleX](https://github.com/Dwlad90/stylex-swc-plugin/tree/develop/crates/stylex-rs-compiler)
package/dist/index.d.ts CHANGED
@@ -10,105 +10,105 @@ interface StylexNextJSPluginOptions extends StyleXOptions {
10
10
  declare function StylexNextJSPlugin({ rootDir, filename, ...pluginOptions }: StylexNextJSPluginOptions): (nextConfig?: NextConfig) => {
11
11
  transpilePackages: string[];
12
12
  webpack(config: Configuration & ConfigurationContext, options: WebpackConfigContext): Configuration & ConfigurationContext;
13
- exportPathMap?: ((defaultMap: import("next/dist/server/config-shared").ExportPathMap, ctx: {
13
+ exportPathMap?: (defaultMap: import("next/dist/server/config-shared").ExportPathMap, ctx: {
14
14
  dev: boolean;
15
15
  dir: string;
16
16
  outDir: string | null;
17
17
  distDir: string;
18
18
  buildId: string;
19
- }) => import("next/dist/server/config-shared").ExportPathMap | Promise<import("next/dist/server/config-shared").ExportPathMap>) | undefined;
20
- i18n?: import("next/dist/server/config-shared").I18NConfig | null | undefined;
21
- eslint?: import("next/dist/server/config-shared").ESLintConfig | undefined;
22
- typescript?: import("next/dist/server/config-shared").TypeScriptConfig | undefined;
23
- headers?: (() => Promise<import("next/dist/lib/load-custom-routes").Header[]>) | undefined;
24
- rewrites?: (() => Promise<import("next/dist/lib/load-custom-routes").Rewrite[] | {
19
+ }) => Promise<import("next/dist/server/config-shared").ExportPathMap> | import("next/dist/server/config-shared").ExportPathMap;
20
+ i18n?: import("next/dist/server/config-shared").I18NConfig | null;
21
+ eslint?: import("next/dist/server/config-shared").ESLintConfig;
22
+ typescript?: import("next/dist/server/config-shared").TypeScriptConfig;
23
+ headers?: () => Promise<import("next/dist/lib/load-custom-routes").Header[]>;
24
+ rewrites?: () => Promise<import("next/dist/lib/load-custom-routes").Rewrite[] | {
25
25
  beforeFiles: import("next/dist/lib/load-custom-routes").Rewrite[];
26
26
  afterFiles: import("next/dist/lib/load-custom-routes").Rewrite[];
27
27
  fallback: import("next/dist/lib/load-custom-routes").Rewrite[];
28
- }>) | undefined;
29
- redirects?: (() => Promise<import("next/dist/lib/load-custom-routes").Redirect[]>) | undefined;
30
- excludeDefaultMomentLocales?: boolean | undefined;
31
- trailingSlash?: boolean | undefined;
32
- env?: Record<string, string | undefined> | undefined;
33
- distDir?: string | undefined;
34
- cleanDistDir?: boolean | undefined;
35
- assetPrefix?: string | undefined;
28
+ }>;
29
+ redirects?: () => Promise<import("next/dist/lib/load-custom-routes").Redirect[]>;
30
+ excludeDefaultMomentLocales?: boolean;
31
+ trailingSlash?: boolean;
32
+ env?: Record<string, string | undefined>;
33
+ distDir?: string;
34
+ cleanDistDir?: boolean;
35
+ assetPrefix?: string;
36
36
  cacheHandler?: string | undefined;
37
- cacheMaxMemorySize?: number | undefined;
38
- useFileSystemPublicRoutes?: boolean | undefined;
39
- generateBuildId?: (() => string | Promise<string | null> | null) | undefined;
40
- generateEtags?: boolean | undefined;
41
- pageExtensions?: string[] | undefined;
42
- compress?: boolean | undefined;
43
- analyticsId?: string | undefined;
44
- poweredByHeader?: boolean | undefined;
45
- images?: Partial<import("next/dist/shared/lib/image-config").ImageConfigComplete> | undefined;
37
+ cacheMaxMemorySize?: number;
38
+ useFileSystemPublicRoutes?: boolean;
39
+ generateBuildId?: () => string | null | Promise<string | null>;
40
+ generateEtags?: boolean;
41
+ pageExtensions?: string[];
42
+ compress?: boolean;
43
+ analyticsId?: string;
44
+ poweredByHeader?: boolean;
45
+ images?: import("next/dist/shared/lib/image-config").ImageConfig;
46
46
  devIndicators?: {
47
- buildActivity?: boolean | undefined;
48
- buildActivityPosition?: "bottom-right" | "bottom-left" | "top-right" | "top-left" | undefined;
49
- } | undefined;
47
+ buildActivity?: boolean;
48
+ buildActivityPosition?: "bottom-right" | "bottom-left" | "top-right" | "top-left";
49
+ };
50
50
  onDemandEntries?: {
51
- maxInactiveAge?: number | undefined;
52
- pagesBufferLength?: number | undefined;
53
- } | undefined;
51
+ maxInactiveAge?: number;
52
+ pagesBufferLength?: number;
53
+ };
54
54
  amp?: {
55
- canonicalBase?: string | undefined;
56
- } | undefined;
57
- deploymentId?: string | undefined;
58
- basePath?: string | undefined;
55
+ canonicalBase?: string;
56
+ };
57
+ deploymentId?: string;
58
+ basePath?: string;
59
59
  sassOptions?: {
60
60
  [key: string]: any;
61
- } | undefined;
62
- productionBrowserSourceMaps?: boolean | undefined;
63
- optimizeFonts?: boolean | undefined;
64
- reactProductionProfiling?: boolean | undefined;
65
- reactStrictMode?: boolean | null | undefined;
61
+ };
62
+ productionBrowserSourceMaps?: boolean;
63
+ optimizeFonts?: boolean;
64
+ reactProductionProfiling?: boolean;
65
+ reactStrictMode?: boolean | null;
66
66
  publicRuntimeConfig?: {
67
67
  [key: string]: any;
68
- } | undefined;
68
+ };
69
69
  serverRuntimeConfig?: {
70
70
  [key: string]: any;
71
- } | undefined;
71
+ };
72
72
  httpAgentOptions?: {
73
- keepAlive?: boolean | undefined;
74
- } | undefined;
75
- outputFileTracing?: boolean | undefined;
76
- staticPageGenerationTimeout?: number | undefined;
77
- crossOrigin?: "anonymous" | "use-credentials" | undefined;
78
- swcMinify?: boolean | undefined;
73
+ keepAlive?: boolean;
74
+ };
75
+ outputFileTracing?: boolean;
76
+ staticPageGenerationTimeout?: number;
77
+ crossOrigin?: "anonymous" | "use-credentials";
78
+ swcMinify?: boolean;
79
79
  compiler?: {
80
80
  reactRemoveProperties?: boolean | {
81
- properties?: string[] | undefined;
82
- } | undefined;
81
+ properties?: string[];
82
+ };
83
83
  relay?: {
84
84
  src: string;
85
- artifactDirectory?: string | undefined;
86
- language?: "typescript" | "javascript" | "flow" | undefined;
87
- eagerEsModules?: boolean | undefined;
88
- } | undefined;
85
+ artifactDirectory?: string;
86
+ language?: "typescript" | "javascript" | "flow";
87
+ eagerEsModules?: boolean;
88
+ };
89
89
  removeConsole?: boolean | {
90
- exclude?: string[] | undefined;
91
- } | undefined;
92
- styledComponents?: boolean | import("next/dist/server/config-shared").StyledComponentsConfig | undefined;
93
- emotion?: boolean | import("next/dist/server/config-shared").EmotionConfig | undefined;
90
+ exclude?: string[];
91
+ };
92
+ styledComponents?: boolean | import("next/dist/server/config-shared").StyledComponentsConfig;
93
+ emotion?: boolean | import("next/dist/server/config-shared").EmotionConfig;
94
94
  styledJsx?: boolean | {
95
- useLightningcss?: boolean | undefined;
96
- } | undefined;
97
- } | undefined;
98
- output?: "standalone" | "export" | undefined;
99
- skipMiddlewareUrlNormalize?: boolean | undefined;
100
- skipTrailingSlashRedirect?: boolean | undefined;
95
+ useLightningcss?: boolean;
96
+ };
97
+ };
98
+ output?: "standalone" | "export";
99
+ skipMiddlewareUrlNormalize?: boolean;
100
+ skipTrailingSlashRedirect?: boolean;
101
101
  modularizeImports?: Record<string, {
102
102
  transform: string | Record<string, string>;
103
- preventFullImport?: boolean | undefined;
104
- skipDefaultConversion?: boolean | undefined;
105
- }> | undefined;
103
+ preventFullImport?: boolean;
104
+ skipDefaultConversion?: boolean;
105
+ }>;
106
106
  logging?: {
107
107
  fetches?: {
108
- fullUrl?: boolean | undefined;
109
- } | undefined;
110
- } | undefined;
111
- experimental?: import("next/dist/server/config-shared").ExperimentalConfig | undefined;
108
+ fullUrl?: boolean;
109
+ };
110
+ };
111
+ experimental?: import("next/dist/server/config-shared").ExperimentalConfig;
112
112
  };
113
113
  export default StylexNextJSPlugin;
114
114
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAC7C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AACvC,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,sCAAsC,CAAC;AACjF,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAI5D,UAAU,yBAA0B,SAAQ,aAAa;IACvD,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,iBAAS,kBAAkB,CAAC,EAC1B,OAAO,EACP,QAA8B,EAC9B,GAAG,aAAa,EACjB,EAAE,yBAAyB,iBACN,UAAU;;oBAIV,aAAa,GAAG,oBAAoB,WAAW,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA8CxF;AAED,eAAe,kBAAkB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAC7C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AACvC,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,sCAAsC,CAAC;AACjF,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAI5D,UAAU,yBAA0B,SAAQ,aAAa;IACvD,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,iBAAS,kBAAkB,CAAC,EAC1B,OAAO,EACP,QAA8B,EAC9B,GAAG,aAAa,EACjB,EAAE,yBAAyB,iBACN,UAAU;;oBAIV,aAAa,GAAG,oBAAoB,WAAW,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAkDwujB,CAAC;6BAAsG,CAAC;;;sBAAke,CAAC;yBAA4H,CAAC;;;qBAA+H,CAAC;;;;;;;;;;;;;;;;;;iBAA8pE,CAAC;;;;;;;6BAAg6C,CAAC;sBAAoC,CAAC;;aAAoC,CAAC;;6BAA0D,CAAC;oBAA8B,CAAC;0BAAkE,CAAC;;qBAA2C,CAAC;mBAAiC,CAAC;;wBAA+C,CAAC;eAAmD,CAAC;iBAA4C,CAAC;2BAAyC,CAAC;;;;;;;;yBAA4zC,CAAC;6BAAwC,CAAC;;;eAAkD,CAAC;mBAAuB,CAAC;;;;EAJzmwB;AAED,eAAe,kBAAkB,CAAC"}
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.4.1-rc.1",
4
+ "version": "0.4.1",
5
5
  "config": {
6
6
  "scripty": {
7
7
  "path": "../../scripts/packages"
@@ -12,15 +12,15 @@
12
12
  },
13
13
  "devDependencies": {
14
14
  "@babel/types": "^7.23.9",
15
- "@stylexswc/eslint-config": "0.4.1-rc.1",
16
- "@stylexswc/rs-compiler": "0.4.1-rc.1",
17
- "@stylexswc/typescript-config": "0.4.1-rc.1",
15
+ "@stylexswc/eslint-config": "0.4.1",
16
+ "@stylexswc/rs-compiler": "0.4.1",
17
+ "@stylexswc/typescript-config": "0.4.1",
18
18
  "@types/babel__core": "^7.20.5",
19
- "@types/node": "^20.12.11",
19
+ "@types/node": "^22.5.1",
20
20
  "next": "^14.0.1",
21
21
  "react": "^18.2.0",
22
22
  "react-dom": "^18.2.0",
23
- "webpack": "^5.88.2"
23
+ "webpack": "^5.94.0"
24
24
  },
25
25
  "files": [
26
26
  "dist"