hai-x

Results 10 issues of hai-x

I want to write a normal text statement beginning with `import` in mdx, but it may be compiled into `import` JS statement. And i get error ``` ✘ [ERROR] Could...

**What kind of change does this PR introduce?** fixes `subtractRuntime` returns `undefined` when params `a` is `Set` and params `b` is `runtime~a` but it is expected to return `Set` **Did...

PR: reviewed-changes-requested

According to https://github.com/webpack/webpack/blob/4baf1c075d59babd028f8201526cb8c4acfd24a0/lib/config/defaults.js#L1415C1-L1416C1, set `optimization.realContentHash` default value. - [x] Read and sign the [CLA][1]. PRs that haven't signed it won't be accepted. - [x] Make sure your PR complies with...

**What kind of change does this PR introduce?** 1. This PR refactors ConfigTest, WatchTest, and HotTest by introducing `TestRunner` to eliminate code duplication and unify logic. The `TestRunner` handles the...

**What kind of change does this PR introduce?** Follows https://github.com/webpack/webpack/issues/19389#issuecomment-2843018988 Step 1. Consolidated SourceMap-related fields under `devtool` to enhance scalability and improve developer experience (DX). Now, devtool can be defined...

**What kind of change does this PR introduce?** Fixes https://github.com/webpack/webpack/issues/19511. **Did you add tests for your changes?** Yes **Does this PR introduce a breaking change?** No **What needs to be...

**What kind of change does this PR introduce?** Refactor the getTypes logic to exclude generation when the original module is not an official JavaScript or CSS module. **Did you add...

**Summary** **What kind of change does this PR introduce?** 1. When `devtool` is set to `eval` or `eval-source-map` with native css enabled, we still apply `SourceMapDevToolPlugin` for css. 2. When...

**What kind of change does this PR introduce?** Fixes https://github.com/webpack/webpack/issues/16886. The `timestampHash` is only generated when `context entry` is `undefined` on `webpack` side (i.e. first compilation without time info from...