next.js icon indicating copy to clipboard operation
next.js copied to clipboard

Dynamic `resourceQuery` isn't passed in Webpack loader with Turbopack enabled

Open dimaMachina opened this issue 1 year ago • 0 comments

Link to the code that reproduces this issue

https://github.com/dimaMachina/repro-next/tree/turbopack-dynamic-resource-query

To Reproduce

Run pnpm dev

Current vs. Expected behavior

See in console

[test-loader.js] this.resourceQuery [ '?static=567&dynamic=' ]

Expected to see:

[test-loader.js] this.resourceQuery [ '?static=567&dynamic=123' ]

Provide environment information

Operating System:
  Platform: darwin
  Arch: x64
  Version: Darwin Kernel Version 22.5.0: Mon Apr 24 20:53:19 PDT 2023; root:xnu-8796.121.2~5/RELEASE_ARM64_T6020
  Available memory (MB): 98304
  Available CPU cores: 12
Binaries:
  Node: 20.15.1
  npm: 10.7.0
  Yarn: N/A
  pnpm: 9.12.1
Relevant Packages:
  next: 15.0.0-canary.196 // Latest available version is detected (15.0.0-canary.196).
  eslint-config-next: 14.1.0
  react: 18.2.0
  react-dom: 18.2.0
  typescript: 5.6.3
Next.js Config:
  output: N/A

Which area(s) are affected? (Select all that apply)

Turbopack

Which stage(s) are affected? (Select all that apply)

next dev (local)

Additional context

No response

dimaMachina avatar Oct 17 '24 21:10 dimaMachina