Repository navigation
chore(extension): clear Vite and Node deprecation warnings in the build and tests - #452
Merged
Merged
Conversation
…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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Clears two deprecation warnings from main CI (run 45485051770):
__dirname, which Vite 8 flags as unsupported byconfigLoader: 'native'(planned default). They now useimport.meta.dirname(Node >= 20.11; the repo requires >= 24).module.register()deprecated on Node 26): the test harness installs its.tsxresolve/load hooks withmodule.registerHooks()instead. The hooks were already effectively synchronous (esbuild.transformSync);asyncis dropped and the file read usesreadFileSync. Same resolution (.js->.tsx->.ts) and transform as before.Left alone (third-party / runtime noise):
glob@11.1.0deprecated (viaworkbox-buildundervite-plugin-pwa), the Node 26ExperimentalWarningfor WebAssembly module imports, the >500 kB chunk notices, and npm 11's install-scripts notice for esbuild / @swc/core / cbor-extract (anallowScriptspolicy decision).