You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Oh, I see what is going on. The documentation is for the new, unreleased changes for the change to TypeScript. But the latest release is prior to the TypeScript changes.
A way to mitigate this issue of the documentation being out of sync with the latest released code is to follow something like GitFlow where the documentation and code on the master branch represent the latest release. Then the develop branch can have the updated documentation and code.
Be sure to leave the repo's default branch as master so that it is what is seen by default.
Version: 1.2.1
Syntax: CommonJS
Using the following:
I get a "TypeError: FilterWarningsPlugin is not a constructor" error message.
Changing "import" to:
fixes the issue.
So, either the documentation (i.e., the README.md) is incorrect, or the package was built incorrectly.
In the
dist
directory ofwebpack-filter-warnings-plugin
in mynode_modules
, I have the following files:and
The
main
property inpackage.json
has"dist/cjs.js"
.I am going to assume the README.md is incorrect, and I am going to create a PR to update it.
The text was updated successfully, but these errors were encountered: