Bug report
I’m trying to build a simple plugin in which I do something very similar to this from inkdrop-export-as-html. However I notice including the spread operator ({...myObj}
) is causing Inkdrop to error on load with Cannot find module core-js/modules/web.dom.iterable
.
I’m running in dev mode and have my plugin symlinked to the user data directory as recommended. Is there something I need to do to allow this functionality? Obviously I don’t have to use the spread operator, but it is very convenient. I assume the official plugin is being compiled in a different environment and that’s why it can use it but my plugin cannot?
Reproduction:
# my_plugin/index.js
module.exports = {
activate() {
const obj = {}
const spread = {...obj}
},
deactivate() { }
}
Thanks for any info!
Info
- Platform: macOS
- Platform version: Mojave
- App Version: 4.5.2