Closed afialapis closed 2 years ago
It's a new Rollup feature it seems: https://rollupjs.org/guide/en/#build-hooks Nollup at the moment expects all plugin hooks to be functions, with no support for the object format.
Shouldn't be difficult to add from the looks of it. I should have a bit of time over the weekend to look into this. :)
Fixed in 0.21.0
! https://github.com/PepsRyuu/nollup/pull/240
Ahh super. Many thanks for your help and time, really appreciated!
Hi there, sorry to disturb again!
When using DevServer API, I find this error:
It can be reproduced on this repo, by running the command
npm run demo
.As suggested here (as it seemed similar problems) I tried by using
liveBindings: true
and alsorollup-plugin-commonjs-alternate
plugin, unsuccessfully.I can easily patch the problem, around here:
Because, in the case of commonjs,
resolveId
is not a function but an object like this:As for other plugins,
resolveId
hook is notasync
, so problem could be related, maybe?Am I calling DevServer as expected or do I miss something? Could problem be avoided somehow?
Anyway, as I can easily patch it and keep going, this is not problematic at all. Just letting you know and hopefully being helpful!
Thanks once again for your time!