Skip to content

chore(deps): update rspack and babel dependencies to latest versions#2090

Open
UnschooledGamer wants to merge 3 commits intoAcode-Foundation:mainfrom
UnschooledGamer:update/rspack
Open

chore(deps): update rspack and babel dependencies to latest versions#2090
UnschooledGamer wants to merge 3 commits intoAcode-Foundation:mainfrom
UnschooledGamer:update/rspack

Conversation

@UnschooledGamer
Copy link
Copy Markdown
Member

@UnschooledGamer UnschooledGamer commented May 8, 2026

Check list

  • Test Terminal installation
  • Build test on Linux
  • LSP Works
  • url(/<some>) assets test.

- Removed unused plugin: com.foxdebug.acode.rk.exec.proot
- Updated @babel/core from ^7.28.5 to ^7.29.0
- Updated @babel/plugin-transform-runtime from ^7.28.5 to ^7.29.0
- Updated @babel/preset-env from ^7.28.5 to ^7.29.5
- Updated @babel/runtime from ^7.28.4 to ^7.29.2
- Updated @babel/runtime-corejs3 from ^7.28.4 to ^7.29.2
- Updated autoprefixer from ^10.4.22 to ^10.5.0
- Updated babel-loader from ^10.0.0 to ^10.1.1
- Updated css-loader from ^7.1.2 to ^7.1.4
- Updated mini-css-extract-plugin from ^2.9.4 to ^2.10.2
- Updated postcss-loader from ^8.2.0 to ^8.2.1
- Updated prettier from ^3.7.4 to ^3.8.3
- Updated prettier-plugin-java from ^2.7.7 to ^2.8.1
- Updated sass from ^1.94.2 to ^1.99.0
- Updated sass-loader from ^16.0.6 to ^16.0.8
- Updated ts-loader from ^9.5.4 to ^9.5.7
- Updated @codemirror/autocomplete from ^6.20.1 to ^6.20.2
- Updated @codemirror/lang-jinja from ^6.0.0 to ^6.0.1
- Updated @codemirror/lang-yaml from ^6.1.2 to ^6.1.3
- Updated @codemirror/language from ^6.12.2 to ^6.12.3
- Updated @codemirror/lint from ^6.9.5 to ^6.9.6
- Updated @codemirror/lsp-client from ^6.2.2 to ^6.2.3
- Updated @codemirror/search from ^6.6.0 to ^6.7.0
- Updated @codemirror/view from ^6.40.0 to ^6.42.1
- Updated acorn from ^8.15.0 to ^8.16.0
- Updated core-js from ^3.47.0 to ^3.49.0
- Updated dayjs from ^1.11.19 to ^1.11.20
- Updated dompurify from ^3.4.0 to ^3.4.2
- Updated filesize from ^11.0.13 to ^11.0.17
- Updated katex from ^0.16.39 to ^0.16.45
- Updated markdown-it-github-alerts from ^1.0.0 to ^1.0.1
- Updated mermaid from ^11.13.0 to ^11.14.0
- Updated mime-types from ^3.0.1 to ^3.0.2
@UnschooledGamer UnschooledGamer marked this pull request as ready for review May 9, 2026 16:28
@greptile-apps
Copy link
Copy Markdown
Contributor

greptile-apps Bot commented May 9, 2026

Greptile Summary

This PR upgrades rspack from v1 to v2 (^1.7.0^2.0.0) along with companion bumps to all Babel, CodeMirror, and various runtime packages, and applies the required v2 migration adjustments in rspack.config.js.

  • rspack v2 migration in rspack.config.js: adds module.parser.javascript options (exportsPresence: 'auto', requireAlias: false), sets resolve.roots: [] explicitly to match the new v2 default, and moves type: 'javascript/auto' before the use array (cosmetic reorder).
  • Babel direct dependencies: @babel/generator, @babel/parser, and @babel/traverse are now listed as explicit devDependencies, correctly reflecting their direct use in utils/custom-loaders/html-tag-jsx-loader.js.
  • Removed entry: com.foxdebug.acode.rk.exec.proot is dropped from devDependencies, unrelated to the dep bump but bundled in the same commit.

Confidence Score: 4/5

Dependency updates are well-scoped and the rspack v2 migration shims are structurally correct; the two config choices worth double-checking are exportsPresence and the empty roots array.

The upgrade applies the documented rspack v2 migration steps correctly. The exportsPresence: auto setting softens the stricter v2 default, which could let real missing-export bugs pass as warnings rather than build errors. The resolve.roots: [] change is the correct v2 default but will silently break any SCSS/CSS files that reference assets with server-relative paths.

rspack.config.js — the new parser and resolve options warrant a quick review against the actual build output and stylesheet asset paths.

Important Files Changed

Filename Overview
package.json Version bumps for rspack (^1.7.0 to ^2.0.0), all major Babel packages, and several runtime dependencies; adds @babel/generator, @babel/parser, @babel/traverse as explicit devDependencies (previously implicit transitive deps); removes the proot plugin entry.
rspack.config.js Adds rspack v2 migration shims: moves type javascript/auto before use array (cosmetic), adds module.parser.javascript options (exportsPresence auto, requireAlias false), and sets resolve.roots to empty array explicitly to match the new v2 default.
package-lock.json Lock-file updated to reflect all version bumps in package.json; no structural anomalies.

Flowchart

%%{init: {'theme': 'neutral'}}%%
flowchart TD
    A[rspack v2 build start] --> B{module.parser.javascript}
    B --> C["exportsPresence: auto"]
    C --> D{Is module strict ESM?}
    D -->|Yes| E[Error on missing export]
    D -->|No - CJS| F[Warning only - may be silent]
    B --> G["requireAlias: false"]
    G --> H["require calls bypass resolve.alias"]
    A --> I{resolve config}
    I --> J["roots: empty array"]
    J --> K["Server-relative CSS paths no longer resolve to project root"]
    A --> M[CSS/SCSS rule]
    M --> N["type: javascript/auto before use array"]
    N --> O[CssExtractRspackPlugin loader chain]
Loading

Reviews (1): Last reviewed commit: "chore: update dependencies" | Re-trigger Greptile

Comment thread rspack.config.js
Comment thread rspack.config.js
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
@UnschooledGamer UnschooledGamer self-assigned this May 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant