Skip to content

How to config additional paths for Babel to compile #13532

Answered by Timer
yankustefan asked this question in Help
Discussion options

You must be logged in to vote

next-transpile-modules is the go-to module for adding this behavior:

// next.config.js
const withTM = require("next-transpile-modules")(["my-module", "my-module-2"]);

module.exports = withTM();

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@yankustefan
Comment options

@yankustefan
Comment options

Answer selected by Timer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants