Skip to content

Conversation

@hai-x
Copy link
Member

@hai-x hai-x commented Nov 16, 2025

Summary

What kind of change does this PR introduce?

Add test for #20096.

I add 3 cases and hopefully it is enough to illustrate the above refactor. Also feel free to request more test cases.

  1. entry module isn't inlined.
  2. entry module is inlined and wrapped in IIFE.
  3. entry module is inlined but not wrapped in IIFE.

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?

No

@github-actions
Copy link
Contributor

github-actions bot commented Nov 16, 2025

        This PR is packaged and the instant preview is available (https://github.com/webpack/webpack/commit/688a7f951143ea5c9fddb59380e9fd8754e5ef89).

        Install it locally:

        - npm

        ```shell
        npm i -D webpack@https://pkg.pr.new/webpack@688a7f9
        ```

        - yarn

        ```shell
        yarn add -D webpack@https://pkg.pr.new/webpack@688a7f9
        ```

        - pnpm

        ```shell
        pnpm add -D webpack@https://pkg.pr.new/webpack@688a7f9
        ```

@codspeed-hq
Copy link

codspeed-hq bot commented Nov 16, 2025

CodSpeed Performance Report

Merging #20127 will not alter performance

Comparing test--no-runtime-requirements-for-module-library (61362bc) with main (04fe5a1)

Summary

✅ 69 untouched

@alexander-akait
Copy link
Member

@hai-x Let's exclude node@10 for tests here

@alexander-akait alexander-akait merged commit 688a7f9 into main Nov 17, 2025
91 of 92 checks passed
@alexander-akait alexander-akait deleted the test--no-runtime-requirements-for-module-library branch November 17, 2025 20:58
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.

3 participants