Skip to content

Remove critical dependencies html2canvas #1072

@offtherailz

Description

@offtherailz

This warning advice that to get better results you have to get the original source. Until html2canvas is published as compressed module on npm, we should suppress this warning and avoid webpack to parse it.

WARNING in ./~/html2canvas/dist/html2canvas.js
Critical dependencies:
8:484-491 This seems to be a pre-built javascript file. Though this is possible, it's not recommended. Try to require the original source to get better results.
 @ ./~/html2canvas/dist/html2canvas.js 8:484-491
webpack: bundle is now VALID.

We can use npParse option to webpack to improve performances and remove the warning.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions