Is Rollup plugin errors column
property zero or one-based?
#5279
Replies: 3 comments
-
Rollup inherited this from |
Beta Was this translation helpful? Give feedback.
-
Clear. It explains why my plugin errors position are shifted one character to the right when displayed by rollup: Twing's errors position are one-based, both line and column. I'll adjust. Thanks a lot. |
Beta Was this translation helpful? Give feedback.
-
@lukastaegert actually, I already fixed it earlier today, I forgot about that. And the errors look perfect now: Anyway, thanks for the confirmation that pos / column is zero-based. |
Beta Was this translation helpful? Give feedback.
-
It is not clear from the documentation if the
column
property of thepos
property of errors emitted throughthis.error
is zero or one-based.Do anyone have the definitive answer?
https://rollupjs.org/plugin-development/#this-error
Beta Was this translation helpful? Give feedback.
All reactions