Skip to content

feat: support __dirname/__filename/import.meta.dirname/import.meta.filename for universal target#20058

Merged
alexander-akait merged 4 commits intomainfrom
universal-target
Nov 3, 2025
Merged

feat: support __dirname/__filename/import.meta.dirname/import.meta.filename for universal target#20058
alexander-akait merged 4 commits intomainfrom
universal-target

Conversation

@alexander-akait
Copy link
Copy Markdown
Member

@alexander-akait alexander-akait commented Oct 28, 2025

Summary

Support __dirname/__filename/import.meta.dirname/import.meta.filename for universal target

What kind of change does this PR introduce?

feature

Did you add tests for your changes?

Yes

Does this PR introduce a breaking change?

No

If relevant, what needs to be documented once your changes are merged or what have you already documented?

Yes, after release

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Oct 28, 2025

This PR is packaged and the instant preview is available (f3d6ac4).

Install it locally:

  • npm
npm i -D https://pkg.pr.new/webpack@f3d6ac4
  • yarn
yarn add -D https://pkg.pr.new/webpack@f3d6ac4
  • pnpm
pnpm add -D https://pkg.pr.new/webpack@f3d6ac4

@codspeed-hq
Copy link
Copy Markdown

codspeed-hq bot commented Oct 28, 2025

CodSpeed Performance Report

Merging #20058 will improve performances by 16.67%

Comparing universal-target (f3d6ac4) with main (fd9861a)

Summary

⚡ 1 improvement
✅ 68 untouched

Benchmarks breakdown

Benchmark BASE HEAD Change
benchmark "wasm-modules-async", scenario '{"name":"mode-development","mode":"development"}' 180.9 ms 155.1 ms +16.67%

@alexander-akait alexander-akait changed the title Universal target feat: support __dirname/__filename/import.meta.dirname/import.meta.filename for universal target Oct 31, 2025
@alexander-akait alexander-akait merged commit a2938e2 into main Nov 3, 2025
52 checks passed
@alexander-akait alexander-akait deleted the universal-target branch November 3, 2025 13:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant