@stylexswc/nextjs-plugin 0.4.1-dev.1 → 0.4.1-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/README.md +2 -2
- package/dist/index.d.ts +70 -70
- package/dist/index.d.ts.map +1 -1
- package/package.json +6 -6
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/
|
|
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/
|
|
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?: (
|
|
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 |
|
|
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?: (
|
|
24
|
-
rewrites?: (
|
|
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
|
-
}
|
|
29
|
-
redirects?: (
|
|
30
|
-
excludeDefaultMomentLocales?: boolean
|
|
31
|
-
trailingSlash?: boolean
|
|
32
|
-
env?: Record<string, string | undefined
|
|
33
|
-
distDir?: string
|
|
34
|
-
cleanDistDir?: boolean
|
|
35
|
-
assetPrefix?: string
|
|
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
|
|
38
|
-
useFileSystemPublicRoutes?: boolean
|
|
39
|
-
generateBuildId?: (
|
|
40
|
-
generateEtags?: boolean
|
|
41
|
-
pageExtensions?: string[]
|
|
42
|
-
compress?: boolean
|
|
43
|
-
analyticsId?: string
|
|
44
|
-
poweredByHeader?: boolean
|
|
45
|
-
images?:
|
|
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
|
|
48
|
-
buildActivityPosition?: "bottom-right" | "bottom-left" | "top-right" | "top-left"
|
|
49
|
-
}
|
|
47
|
+
buildActivity?: boolean;
|
|
48
|
+
buildActivityPosition?: "bottom-right" | "bottom-left" | "top-right" | "top-left";
|
|
49
|
+
};
|
|
50
50
|
onDemandEntries?: {
|
|
51
|
-
maxInactiveAge?: number
|
|
52
|
-
pagesBufferLength?: number
|
|
53
|
-
}
|
|
51
|
+
maxInactiveAge?: number;
|
|
52
|
+
pagesBufferLength?: number;
|
|
53
|
+
};
|
|
54
54
|
amp?: {
|
|
55
|
-
canonicalBase?: string
|
|
56
|
-
}
|
|
57
|
-
deploymentId?: string
|
|
58
|
-
basePath?: string
|
|
55
|
+
canonicalBase?: string;
|
|
56
|
+
};
|
|
57
|
+
deploymentId?: string;
|
|
58
|
+
basePath?: string;
|
|
59
59
|
sassOptions?: {
|
|
60
60
|
[key: string]: any;
|
|
61
|
-
}
|
|
62
|
-
productionBrowserSourceMaps?: boolean
|
|
63
|
-
optimizeFonts?: boolean
|
|
64
|
-
reactProductionProfiling?: boolean
|
|
65
|
-
reactStrictMode?: boolean | null
|
|
61
|
+
};
|
|
62
|
+
productionBrowserSourceMaps?: boolean;
|
|
63
|
+
optimizeFonts?: boolean;
|
|
64
|
+
reactProductionProfiling?: boolean;
|
|
65
|
+
reactStrictMode?: boolean | null;
|
|
66
66
|
publicRuntimeConfig?: {
|
|
67
67
|
[key: string]: any;
|
|
68
|
-
}
|
|
68
|
+
};
|
|
69
69
|
serverRuntimeConfig?: {
|
|
70
70
|
[key: string]: any;
|
|
71
|
-
}
|
|
71
|
+
};
|
|
72
72
|
httpAgentOptions?: {
|
|
73
|
-
keepAlive?: boolean
|
|
74
|
-
}
|
|
75
|
-
outputFileTracing?: boolean
|
|
76
|
-
staticPageGenerationTimeout?: number
|
|
77
|
-
crossOrigin?: "anonymous" | "use-credentials"
|
|
78
|
-
swcMinify?: boolean
|
|
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[]
|
|
82
|
-
}
|
|
81
|
+
properties?: string[];
|
|
82
|
+
};
|
|
83
83
|
relay?: {
|
|
84
84
|
src: string;
|
|
85
|
-
artifactDirectory?: string
|
|
86
|
-
language?: "typescript" | "javascript" | "flow"
|
|
87
|
-
eagerEsModules?: boolean
|
|
88
|
-
}
|
|
85
|
+
artifactDirectory?: string;
|
|
86
|
+
language?: "typescript" | "javascript" | "flow";
|
|
87
|
+
eagerEsModules?: boolean;
|
|
88
|
+
};
|
|
89
89
|
removeConsole?: boolean | {
|
|
90
|
-
exclude?: string[]
|
|
91
|
-
}
|
|
92
|
-
styledComponents?: boolean | import("next/dist/server/config-shared").StyledComponentsConfig
|
|
93
|
-
emotion?: boolean | import("next/dist/server/config-shared").EmotionConfig
|
|
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
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
output?: "standalone" | "export"
|
|
99
|
-
skipMiddlewareUrlNormalize?: boolean
|
|
100
|
-
skipTrailingSlashRedirect?: boolean
|
|
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
|
|
104
|
-
skipDefaultConversion?: boolean
|
|
105
|
-
}
|
|
103
|
+
preventFullImport?: boolean;
|
|
104
|
+
skipDefaultConversion?: boolean;
|
|
105
|
+
}>;
|
|
106
106
|
logging?: {
|
|
107
107
|
fetches?: {
|
|
108
|
-
fullUrl?: boolean
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
experimental?: import("next/dist/server/config-shared").ExperimentalConfig
|
|
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
|
package/dist/index.d.ts.map
CHANGED
|
@@ -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,EAA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AA0D,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-
|
|
4
|
+
"version": "0.4.1-rc.2",
|
|
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-
|
|
16
|
-
"@stylexswc/rs-compiler": "0.4.1-
|
|
17
|
-
"@stylexswc/typescript-config": "0.4.1-
|
|
15
|
+
"@stylexswc/eslint-config": "0.4.1-rc.2",
|
|
16
|
+
"@stylexswc/rs-compiler": "0.4.1-rc.2",
|
|
17
|
+
"@stylexswc/typescript-config": "0.4.1-rc.2",
|
|
18
18
|
"@types/babel__core": "^7.20.5",
|
|
19
|
-
"@types/node": "^
|
|
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.
|
|
23
|
+
"webpack": "^5.94.0"
|
|
24
24
|
},
|
|
25
25
|
"files": [
|
|
26
26
|
"dist"
|