next.js/packages/next-codemod/transforms/__testfixtures__/next-experimental-turbo-to-turbopack/wrapped-function.input.js
wrapped-function.input.js24 lines498 B
// Next.js config with wrapper function
const nextConfig = {
  experimental: {
    turbo: {
      resolveAlias: {
        underscore: 'lodash',
        mocha: { browser: 'mocha/browser-entry.js' },
      },
      memoryLimit: 4096,
      minify: true,
      treeShaking: false,
      sourceMaps: true
    },
    typedRoutes: true,
  },
  images: {
    formats: ['image/avif', 'image/webp'],
  },
};

// Wrapper function
const withMDX = require("@next/mdx")();
module.exports = withMDX(nextConfig);
Quest for Codev2.0.0
/
SIGN IN