Open maxlath opened 11 months ago
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
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