Not 100% sure if there's repercussions here, but I'm thinking entry should be parent
Instead of:
function *plugin(file, entry) {
}
it should probably be:
function *plugin(file, parent) {
}
The use case I'm running into is supporting HTML that have javascript, the plugins will think entry.type will be HTML, though for all real purposes, the plugin context will be javascript.
Not 100% sure if there's repercussions here, but I'm thinking
entry
should beparent
Instead of:
it should probably be:
The use case I'm running into is supporting HTML that have javascript, the plugins will think
entry.type
will be HTML, though for all real purposes, the plugin context will be javascript.