We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi!
// in src/index.js export default function
becomes
// in dist/index.js exports.default = function () {
so the ES import currently needs to look like this:
import WAE from 'web-auto-extractor' WAE.default().parse(html)
instead of
import WAE from 'web-auto-extractor' WAE.parse(html)
which is what the readme says.
That could maybe be solved by making ES imports directly import the src files, something like this:
src
// in package.json { "exports": { "import": "./src/index.js", "require": "./dist/index.js" } }
see documentation
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hi!
becomes
so the ES import currently needs to look like this:
instead of
which is what the readme says.
That could maybe be solved by making ES imports directly import the
src
files, something like this:see documentation
The text was updated successfully, but these errors were encountered: