diff --git a/docs/next.config.mjs b/docs/next.config.mjs index 8e3bf7e3..5430f71c 100644 --- a/docs/next.config.mjs +++ b/docs/next.config.mjs @@ -1,12 +1,13 @@ -import nextTranspileModules from 'next-transpile-modules'; +/** + * @template {import('next').NextConfig} T + * @param {T} config - A generic parameter that flows through to the return type + * @constraint {{import('next').NextConfig}} + */ +function defineNextConfig(config) { + return config; +} -const withTM = nextTranspileModules([ - // array of package names - '@luke-ui/button', -]); -/** @type {import('next').NextConfig} */ -const nextConfig = { +export default defineNextConfig({ reactStrictMode: true, -}; - -export default withTM(nextConfig); + swcMinify: true, +}); diff --git a/docs/package.json b/docs/package.json index 82372168..891cdfe4 100644 --- a/docs/package.json +++ b/docs/package.json @@ -23,7 +23,6 @@ "@types/react": "^18.0.20", "eslint": "^8.23.1", "eslint-config-luke-ui": "workspace:*", - "next-transpile-modules": "^9.0.0", "typescript": "^4.8.3" } } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 219ecc1a..0e910480 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -72,7 +72,6 @@ importers: eslint: ^8.23.1 eslint-config-luke-ui: workspace:* next: ^12.3.0 - next-transpile-modules: ^9.0.0 react: ^18.2.0 react-dom: ^18.2.0 typescript: ^4.8.3 @@ -88,7 +87,6 @@ importers: '@types/react': 18.0.20 eslint: 8.23.1 eslint-config-luke-ui: link:../internal/eslint-config-luke-ui - next-transpile-modules: 9.0.0 typescript: 4.8.3 internal/dev: @@ -6428,13 +6426,6 @@ packages: /neo-async/2.6.2: resolution: {integrity: sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw==} - /next-transpile-modules/9.0.0: - resolution: {integrity: sha512-VCNFOazIAnXn1hvgYYSTYMnoWgKgwlYh4lm1pKbSfiB3kj5ZYLcKVhfh3jkPOg1cnd9DP+pte9yCUocdPEUBTQ==} - dependencies: - enhanced-resolve: 5.10.0 - escalade: 3.1.1 - dev: true - /next/12.3.0_ir3quccc6i62x6qn6jjhyjjiey: resolution: {integrity: sha512-GpzI6me9V1+XYtfK0Ae9WD0mKqHyzQlGq1xH1rzNIYMASo4Tkl4rTe9jSqtBpXFhOS33KohXs9ZY38Akkhdciw==} engines: {node: '>=12.22.0'}