Skip to content

[Bug]: How to enable importMetaDirnameAndFilename in @rspack/core, as the variable exists in @rspack/bindings but cannot be configured in @rspack/core. #12695

@huhuanming

Description

@huhuanming

System Info

System:
OS: macOS 26.2
CPU: (11) arm64 Apple M3 Pro
Memory: 105.50 MB / 36.00 GB
Shell: 5.9 - /bin/zsh
Browsers:
Chrome: 143.0.7499.147
Safari: 26.2
npmPackages:
"@rspack/cli": "^1.7.1",
"@rspack/core": "^1.7.1",
"@rspack/plugin-react-refresh": "^1.6.0"

Details

How to enable importMetaDirnameAndFilename in @rspack/core, as the variable exists in @rspack/bindings but cannot be configured in @rspack/core.

Reproduce link

No response

Reproduce Steps

  1. Install rspack.
  2. The environment in the output field does not support configuring the importMetaDirnameAndFilename property.
Image Image

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions