{"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,"search_vec":"'1.0.5':29 '11':44 '2020':33 '7.0.0':38 'babel':5,14,62,77 'babel.config.js':18,70 'broken':41 'config':6,15,76 'configur':63 'current':25 'custom':4,13 'differenti':57 'e.g':17 'enabl':58 'file':16 'fix':53 'javascript':73 'key':56 'last':30 'longer':49 'maintain':50 'modul':79 'monorepo':20,65 'need':72 'next':2,74 'next-plugin-custom-babel-config':1 'next.js':8,37,43,75 'plugin':3,9,46 'project':60 'project-wid':59 'prs':51 'publish':31 'resolv':11 'setup':21 'share':67 'singl':69 'stabl':26 'use':22 'version':27 'webpack':78 'welcom':55 'wide':61 'work':35 'workspac':24 'yarn':23","created_at":"2026-04-25T11:22:02.043236+00:00","updated_at":"2026-04-25T11:22:02.043236+00:00","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,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":"","cli_version":null,"type":"library","homepage":null,"github":"https://github.com/josephluck/next-plugin-custom-babel-config","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/next-plugin-custom-babel-config","openapi_spec":null,"status_page":null,"smithery":null,"categories":["web-framework","devops"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-17","next_check":"2026-07-24","install_tag":null}}