Skip to content

Properly detect eval("require") as require #179

Closed
@fraxken

Description

@fraxken

https://unpkg.com/[email protected]/core.js

We should detect the following code as an unsafe-import (but still detect the usage of the stream core module)

// Using `eval` to work around issues when bundling with Webpack
const stream = eval('require')('stream'); // eslint-disable-line no-eval

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggood first issueGood for newcomers

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions