Skip to content

chore(extension): clear Vite and Node deprecation warnings in the build and tests - #452

Merged
stormer78 merged 1 commit into
mainfrom
chore/clear-build-warnings
Nov 25, 2026
Merged

stormer78 merged 1 commit into
mainfrom
chore/clear-build-warnings

Conversation

@stormer78

Copy link
Copy Markdown
Contributor

Clears two deprecation warnings from main CI (run 45485051770):

  • Vite native config loader: the four extension Vite configs used __dirname, which Vite 8 flags as unsupported by configLoader: 'native' (planned default). They now use import.meta.dirname (Node >= 20.11; the repo requires >= 24).
  • DEP0205 (module.register() deprecated on Node 26): the test harness installs its .tsx resolve/load hooks with module.registerHooks() instead. The hooks were already effectively synchronous (esbuild.transformSync); async is dropped and the file read uses readFileSync. Same resolution (.js -> .tsx -> .ts) and transform as before.

Left alone (third-party / runtime noise): glob@11.1.0 deprecated (via workbox-build under vite-plugin-pwa), the Node 26 ExperimentalWarning for WebAssembly module imports, the >500 kB chunk notices, and npm 11's install-scripts notice for esbuild / @swc/core / cbor-extract (an allowScripts policy decision).

…ld and tests

- Vite configs use import.meta.dirname instead of __dirname, which
  Vite 8 flags as unsupported by the native config loader it plans to
  make the default.
- The test harness installs its .tsx resolve/load hooks with
  module.registerHooks (synchronous, in-thread) instead of
  module.register, deprecated as DEP0205 on Node 26. The hooks were
  already effectively synchronous (esbuild.transformSync); the file read
  becomes readFileSync.

Signed-off-by: Glenn Gore <glenn.g@affinidi.com>
@stormer78
stormer78 merged commit ea196ad into main Nov 25, 2026
4 checks passed
@stormer78
stormer78 deleted the chore/clear-build-warnings branch November 25, 2026 16:44
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