-
Notifications
You must be signed in to change notification settings - Fork 32
Open
Description
Hi!
// in src/index.js
export default functionbecomes
// 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:
// in package.json
{
"exports": {
"import": "./src/index.js",
"require": "./dist/index.js"
}
}see documentation
Metadata
Metadata
Assignees
Labels
No labels