EMP Micro FE Base on Rspack & module federation
This report summarizes scanner evidence for empjs/emp, a TypeScript project with 2,397 GitHub stars. SynthScan examined 54,579 lines of code across 589 source files, recording 28 pattern matches distributed across 3 syntactic categories. The legacy adjusted pattern signal is 0.8 (Low pattern signal); it is not an authorship estimate.
Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.
Use each vector to guide manual verification of the underlying findings.
Payload schema: 1.0.0 · Engine: 2.0.0 · Scoring: heuristic-density-v1 · Scan date: 2026-10-31.
Can maintainers explain intent, assumptions, and trade-offs? 26 finding(s).
Are imports declared and package/API names verified? 2 finding(s).
Are wrappers, guards, and repeated structures necessary? 11 finding(s).
Which changes need focused human review? 28 finding(s).
This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.
Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.
This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.
The scanner identified 28 distinct pattern matches across 3 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.
Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| CRITICAL | packages/cli/src/store/rspack/module.ts | 190 | this.store.chain.resolve.alias.set('@swc/helpers', path.dirname(require.resolve('@swc/helpers/package.json'))) | CODE |
| CRITICAL | packages/cli/src/store/rspack/module.ts | 198 | this.store.chain.resolve.alias.set('core-js', this.coreJs.alias) | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | packages/emp-share/src/adapter/vue.ts | 81 | // console.log('not implement') | COMMENT |
| LOW | packages/eslint-config-react/index.js | 61 | endOfLine: 'auto', | COMMENT |
| LOW | packages/plugin-vue3/src/index.ts | 1 | import type {GlobalStore} from '@empjs/cli' | COMMENT |
| LOW | packages/plugin-vue3/src/index.ts | 81 | store.chain.merge({ | COMMENT |
| LOW | packages/cli/src/script/build.ts | 81 | chunks: false, | COMMENT |
| LOW | packages/cli/src/store/rspack/common.ts | 201 | // // 对所有类型的 chunk(同步/异步)都进行分包处理 | COMMENT |
| LOW | packages/cli/src/store/rspack/common.ts | 221 | // // 默认分组:被多次引用的模块会被抽离复用 | COMMENT |
| LOW | packages/cli/src/store/rspack/builtInPlugin.ts | 21 | name: undefined, | COMMENT |
| LOW | packages/plugin-vue2/src/index.ts | 1 | import type {GlobalStore} from '@empjs/cli' | COMMENT |
| LOW | packages/plugin-vue2/src/index.ts | 61 | store.chain.merge({ | COMMENT |
| LOW | packages/plugin-vue2/src/index.ts | 81 | // styleLibraryDirectory: 'lib/style', | COMMENT |
| LOW | packages/emp-chain/README.md | 181 | // 返回Map中全部配置的一个对象, 其中 键是这个对象属性,值是相应键的值, | COMMENT |
| LOW | apps/demo/emp.config.ts | 21 | // autoDevBase: true, | COMMENT |
| LOW | apps/demo/emp.config.ts | 81 | visitor: getCssLoader('rem'), | COMMENT |
| LOW | apps/mf-app/src/index.tsx | 1 | import('./bootstrap') | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | packages/emp-share/rslib.config.ts | 33 | function writeDeclarationEntryShims() { | CODE |
| LOW | packages/cli/test/cli-create-help.test.ts | 168 | function createFailedCommandReport(targetDir: string) { | CODE |
| LOW | packages/cli/test/real/cli-auto-pages.test.ts | 75 | async function writeCustomAutoPagesFixture(root: string) { | CODE |
| LOW | packages/cli/src/agent-create/executor.ts | 78 | function skippedAfterSkippedInstall(name: string, command: string): CommandResult { | CODE |
| LOW | packages/cli/src/agent-create/planner.ts | 50 | export async function assignAvailableCreatePorts(plan: CreateProjectPlan): Promise<CreateProjectPlan> { | CODE |
| LOW | packages/cli/src/script/create.ts | 27 | export function applyCreateReportExitStatus( | CODE |
| LOW | packages/cli/src/script/create.ts | 159 | async function writeFailedCreateReportIfAbsent( | CODE |
| LOW | packages/cli/src/script/options.ts | 55 | export function registerUnsupportedCommand(program: Command, name: string, description: string) { | CODE |
| LOW | packages/lib-react-17/rslib.config.ts | 6 | function ensureRuntimeDeclarations() { | CODE |
| LOW | packages/lib-vue-2/rslib.config.ts | 6 | function ensureRuntimeDeclarations() { | CODE |
| LOW | apps/test/apps.acceptance.test.ts | 95 | function assertNoDefaultTailwindPostcssWarning(stderr: string) { | CODE |