Skip to content

rspack warning #6243

@carlosalvidrez

Description

@carlosalvidrez

Describe the bug
rspack warning... you might want to lint the code.

To Reproduce
Launch using rspack as a builder of any react+meteor.js app.

Expected behavior
No warning should be cast.

Screenshots

[Rspack Client] [client-rspack]:
WARNING in ./node_modules/react-datepicker/dist/index.es.js 138:21-48
⚠ Critical dependency: the request of a dependency is an expression
╭─[138:28]
136 │ var dateFnsTzModuleName = "date-fns-tz";
137 │ // eslint-disable-next-line @typescript-eslint/no-require-imports
138 │ dateFnsTz = require(dateFnsTzModuleName);
· ───────────────────
139 │ }
140 │ catch (_a) {
╰────

[client-rspack] compiled with 1 warning in 243 ms

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