awslabs/aws-jwt-verify

NextJS TurboPack resolve #node-web-compat

rickiesmooth opened this issue · 2 comments

I'm testing turbopack with the latest version of NextJS (13.3.0) which doesn't seem to support private mappings yet. I was wondering if someone got it to work with a resolve alias?

https://turbo.build/pack/docs/features/customizing-turbopack#resolve-aliases

Without trying it, this might work:

module.exports = {
  experimental: {
    turbo: {
      resolveAlias: {
        "#node-web-compat": { 
          browser: "./node-web-compat-web.js",
          default: "./node-web-compat-node.js",
        },
      },
    },
  },
}

A minimal description of steps to reproduce would be nice otherwise

Closing for now because unsure how to reproduce