@donotdev/core 0.0.33 → 0.0.35
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/empty.js +16 -2
- package/functions/index.js +11 -11
- package/index.d.ts +3 -3
- package/index.js +22 -22
- package/next/index.d.ts +18 -1
- package/next/index.js +53 -51
- package/package.json +2 -2
- package/server.js +1 -1
- package/vite/index.js +15 -15
package/next/index.d.ts
CHANGED
|
@@ -781,5 +781,22 @@ interface NextConfigOptions {
|
|
|
781
781
|
*/
|
|
782
782
|
declare function defineNextConfig(options?: NextConfigOptions): any;
|
|
783
783
|
|
|
784
|
-
|
|
784
|
+
// packages/core/config/next/index.d.ts
|
|
785
|
+
|
|
786
|
+
|
|
787
|
+
|
|
788
|
+
/**
|
|
789
|
+
* Create PostCSS configuration for Next.js consumer apps.
|
|
790
|
+
* Handles @fontsource CSS alias and workspace-aware package resolution.
|
|
791
|
+
*
|
|
792
|
+
* @example
|
|
793
|
+
* ```js
|
|
794
|
+
* // postcss.config.js
|
|
795
|
+
* import { definePostCSSConfig } from '@donotdev/core/next';
|
|
796
|
+
* export default definePostCSSConfig();
|
|
797
|
+
* ```
|
|
798
|
+
*/
|
|
799
|
+
declare function definePostCSSConfig(): Promise<{ plugins: Array<unknown> }>;
|
|
800
|
+
|
|
801
|
+
export { defineNextConfig, definePostCSSConfig };
|
|
785
802
|
export type { NextConfigOptions };
|