A Next.js plugin to transpile ES6+ modules from node_modules and local packages using Next.js's Babel configuration.
Next-transpile-modules is a Next.js plugin that allows developers to transpile code from node_modules and local packages using Next.js's Babel configuration. It solves the problem of using ES6+ modules or local libraries in Next.js projects by ensuring they are processed consistently with the project's build setup.
Next.js developers working in monorepos, using local packages, or relying on ES6+ npm modules that require transpilation.
Developers choose next-transpile-modules for its seamless integration with Next.js, support for hot-reloading local packages, and compatibility with various package managers, simplifying complex monorepo setups.
Next.js plugin to transpile code from node_modules.
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Transpiles JavaScript, TypeScript, CSS, SCSS, and SASS files from node_modules, as stated in the README under key features, ensuring compatibility with diverse codebases.
Enables hot-reloading for local packages during development, improving workflow efficiency in monorepos by reflecting changes in real-time without restarts.
Works out of the box with npm, yarn, pnpm, and others, reducing setup friction across different environments, as highlighted in the installation section.
Configurable symlink resolution optimizes for scenarios like npm link or yarn workspaces, making it easier to manage linked packages in complex setups.
Officially deprecated since Next.js 13.1, with only life-support maintenance, meaning no new features, fixes, or official support, as warned in the README note.
Requires strict version matching with Next.js, detailed in the compatibility table, leading to frequent build breaks if dependencies are updated incorrectly.
Handling issues like duplicated React dependencies or Lerna setups often demands manual Webpack tweaks, adding overhead and potential for errors, as explained in the FAQ.
Cannot transpile only parts of a package, forcing full transpilation even for unnecessary modules, which can be inefficient and slow down builds.