webpack: Can't use `[name]` in `webassemblyModuleFilename`

Bug report

What is the current behavior?

Trying to use [name] in output.webassemblyModuleFilename config leads to:

ChunkRenderError: Path variable [name] not implemented in this context: 

What is the expected behavior?

[name] should be accepted and replaced with a basename of the Wasm file, like WebPack does in filename and chunkFilename contexts.

Other relevant information: webpack version: 4.28.0 Node.js version: 12.7.0 Operating System: Windows 10 Additional tools:

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Reactions: 1
  • Comments: 16 (16 by maintainers)

Most upvoted comments

[name] won’t be implemented in context of webassemblyModuleFilename as it’s related to chunks and webassemblyModuleFilename is related to modules.