Full Toolkit for Next-Level Domain Analysis
Convert PostCSS config to ESM to unbreak Turbopack builds 🎨🔧 (#104)
Felix Wotschofsky7d4b11e7f1f2
diff --git a/next-env.d.ts b/next-env.d.tsindex a419cbe..ce4e94a 100644--- a/next-env.d.ts+++ b/next-env.d.ts@@ -1,7 +1,7 @@/// <reference types="next" />/// <reference types="next/image-types/global" />-import "./.next/dev/types/routes.d.ts";-import "./.next/dev/types/root-params.d.ts";+import "./.next/types/routes.d.ts";+import "./.next/types/root-params.d.ts";// NOTE: This file should not be edited// see https://nextjs.org/docs/app/api-reference/config/typescript for more information.diff --git a/postcss.config.js b/postcss.config.jsdeleted file mode 100644index e564072..0000000--- a/postcss.config.js+++ /dev/null@@ -1,5 +0,0 @@-module.exports = {- plugins: {- '@tailwindcss/postcss': {},- },-};diff --git a/postcss.config.mjs b/postcss.config.mjsnew file mode 100644index 0000000..d6fb032--- /dev/null+++ b/postcss.config.mjs@@ -0,0 +1,9 @@+// ESM on purpose: as CommonJS, Turbopack wraps this in a generated+// `postcss.config.js_.loader.mjs` that calls a missing async-module helper+// (`__turbopack_context__.a is not a function`), which fails the build whenever+// a CSS file actually has to be recompiled. Regressed in Next.js 16.3.0.+export default {+ plugins: {+ '@tailwindcss/postcss': {},+ },+};