{"id":20233,"library":"next-plugin-custom-babel-config","title":"next-plugin-custom-babel-config","description":"A Next.js plugin that resolves a custom babel config file (e.g., babel.config.js) for monorepo setups using yarn workspaces. Current stable version is 1.0.5, last published in 2020. It works with Next.js >7.0.0 but is broken on Next.js 11+. The plugin is no longer maintained; PRs for fixes are welcome. Key differentiator: enables project-wide babel configuration in monorepos where sharing a single babel.config.js is needed.","status":"deprecated","version":"1.0.5","language":"javascript","source_language":"en","source_url":"https://github.com/josephluck/next-plugin-custom-babel-config","tags":["javascript","next","next.js","config","babel","webpack","modules"],"install":[{"cmd":"npm install next-plugin-custom-babel-config","lang":"bash","label":"npm"},{"cmd":"yarn add next-plugin-custom-babel-config","lang":"bash","label":"yarn"},{"cmd":"pnpm add next-plugin-custom-babel-config","lang":"bash","label":"pnpm"}],"dependencies":[],"imports":[{"note":"This package uses CommonJS default export. ESM import will fail.","wrong":"import withCustomBabelConfigFile from 'next-plugin-custom-babel-config';","symbol":"withCustomBabelConfigFile","correct":"const withCustomBabelConfigFile = require('next-plugin-custom-babel-config');"}],"quickstart":{"code":"const path = require('path');\nconst withCustomBabelConfigFile = require('next-plugin-custom-babel-config');\n\nmodule.exports = withCustomBabelConfigFile({\n  babelConfigFile: path.resolve('../babel.config.js')\n});","lang":"javascript","description":"Shows how to wrap Next.js config with custom babel config file path resolution."},"warnings":[{"fix":"Consider using Next.js built-in babel configuration via .babelrc or babel.config.js in root, or migrate to a supported plugin.","message":"Plugin is no longer maintained and is broken with Next.js 11+.","severity":"deprecated","affected_versions":">=11.0.0"},{"fix":"Use const withCustomBabelConfigFile = require('next-plugin-custom-babel-config');","message":"The plugin only supports CommonJS require() and does not work with ESM import.","severity":"gotcha","affected_versions":">=1.0.0"}],"env_vars":null,"last_verified":"2026-04-25T00:00:00.000Z","next_check":"2026-07-24T00:00:00.000Z","problems":[{"fix":"Run npm install next-plugin-custom-babel-config --save","cause":"Package not installed or installed only as devDependency.","error":"Error: Cannot find module 'next-plugin-custom-babel-config'"},{"fix":"Change to const withCustomBabelConfigFile = require('next-plugin-custom-babel-config');","cause":"Using ES6 import syntax instead of CommonJS require.","error":"TypeError: withCustomBabelConfigFile is not a function"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}