Skip to content

Eval security vulnerability #20

@Innders

Description

@Innders

When importing registerRemotes I get this security warning when building the project.

import { registerRemotes } from "@module-federation/enhanced/runtime"

    "@module-federation/enhanced": "^0.8.11",
    "@module-federation/vite": "^1.2.2",
    "vite": "^5.2.10"

yarn build

node_modules/@module-federation/sdk/dist/index.cjs.js (634:77): Use of eval in "node_modules/@module-federation/sdk/dist/index.cjs.js" is strongly discouraged as it poses security risks and may cause issues with minification.

Replicate by installing a fresh vite project and importing "@module-federation/enhanced/runtime". Run yarn build.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions