const withTM = require('next-transpile-modules')(['ramda']); module.exports = withTM({ /* Your Next.js config */ });