Scan your whole stack
From OX Research Newsroom
Are you using @lark-apaas/coding-preset-vite-react?
Find out what’s in your code.
Scan your apps free in minutes (opens in a new tab)Latest version: v1.0.34-beta.0
@lark-apaas/coding-preset-vite-react was last scanned on 26 Nov 2026 at version 1.0.34-beta.0. Risk score 0 of 100. No malicious behavior was detected.
| Version | Published | Status |
|---|---|---|
| 1.0.34-beta.0 LATEST | 26 Nov 2026 | No rules fired |
| 1.0.34-alpha.20261126030249 | 26 Nov 2026 | No rules fired |
| 1.0.34-alpha.20261125143254 | 25 Nov 2026 | No rules fired |
| 1.0.34-alpha.20261123101602 | 23 Nov 2026 | Not shown |
| 1.0.34-alpha.20261123095227 | 23 Nov 2026 | Not shown |
Findings for v1.0.34-beta.0. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.
The score describes 1.0.34-beta.0; other versions have their own rules, not their own score.
The publisher’s own README, as collected from the registry.
Vite 8 preset used by miaoda-coding vite-react applications. The same
defineConfig entry covers jsPage applications and upgraded fullstack
applications (MIAODA_APP_TYPE=3).
Development mode enables bounded modulepreload injection by
default. The plugin reads module entry scripts from the transformed HTML, asks
Vite to transform those modules, and uses es-module-lexer on the transformed
ESM output to distinguish static imports from dynamic imports. It then walks
only matching static edges from Vite's client module graph. Production config
does not register the plugin.
The traversal is breadth-first and fail-open. There is no preload count cap by
default (maxModules can still set one); traversal is limited to 300 visited
modules, eight dependency levels, and 250 ms. Each transformed source module is
capped at 128 KB; node_modules, virtual and Vite runtime modules are capped at
16 MB, so the shared .vite/deps chunks imported by large deps such as
react-dom_client.js are still discovered. At most 2,048 imports are inspected
per module, and results are stored in a 32-entry LRU cache. HMR and
watched-file changes clear the cache, except files under the dev log directory
(LOG_DIR, default logs/) that no client module imports: the dev scripts
write logs there constantly and they never change the module graph. Existing
modulepreload links are deduplicated.
Besides application sources and pre-bundled deps, the critical-path modules the
browser would otherwise discover one round trip later are preloaded as well:
/@vite/client and its imports (e.g. env.mjs), /@react-refresh, virtual
modules served as /@id/..., and non-pre-bundled node_modules files such as
CSS imported by deps or preset aliases. Business entries are walked before the
Vite runtime entries. Pre-bundled deps and their shared chunks are only
preloaded when their ?v= hash matches the current optimizer metadata;
non-pre-bundled node_modules files must carry the current optimizer
browserHash.
Cross-origin URLs, /@fs, /__vite*, miaoda platform scripts, API paths,
unsafe encodings, and query parameters outside Vite's allowlist are filtered.
Preload links are inserted right before the first parser-blocking external
script (such as the HMR token script) so the parser acts on them immediately;
without such a script they are appended to <head>.
When the 250 ms budget runs out (typically right after the dev server starts), the traversal keeps going in the background for up to 15 s and caches the full result, so the next HTML transform gets the complete list. Fullstack apps write their HTML to disk only at startup and after HMR, so there the preset also rewrites that file once the background traversal finds more preloads.
That file is served by Nest long after it was written. When Vite re-optimizes
dependencies in the meantime, its old ?v= preloads would get
504 Outdated Optimize Dep or be downloaded twice, so dev-proxy removes
preloads whose version is no longer current before returning the page.
In fullstack apps the very first HTML write after the dev server starts is what the first page request waits for, while Nest is usually still booting. That write keeps traversing until the Nest port accepts connections (at least 250 ms, at most 5 s, matching dev-proxy's retry window), so the first page already gets the full list. Transforms within one breadth-first level run with bounded concurrency (8 by default); results are applied in the same order as a sequential walk.
import { defineConfig } from '@lark-apaas/coding-preset-vite-react';
export default defineConfig(
{},
{
devModulePreload: {
debug: false,
},
}
);
Set devModulePreload.enabled to false, or set
MIAODA_DEV_MODULE_PRELOAD=false, to disable the feature; both are read when
the config loads, so restart the dev server for the change to apply. Debug
mode logs aggregate counts and timing only; it does not log module URLs or query
values.
The implementation belongs to this preset because current jsPage and upgraded
fullstack templates consume its public defineConfig entry. The separate
@lark-apaas/coding-vite-preset package does not register or expose this
feature.
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.
The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).
The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.