@asbish that's because we control the parser ourselves based on the major mode... but I consider your case a bug, when you set the parser explicitly in the config we should honor that setting. Good catch. I'll open an issue for it.
As a workaround, you can (setq-local prettier-parsers '(meriyah)) (maybe in file-local variables, or dir-local.el, or js-mode-hook). Or you can disable babel in prettier-enabled-parsers, which will make it try meriyah next.
@asbish that's because we control the parser ourselves based on the major mode... but I consider your case a bug, when you set the parser explicitly in the config we should honor that setting. Good catch. I'll open an issue for it.
As a workaround, you can
(setq-local prettier-parsers '(meriyah))
(maybe in file-local variables, ordir-local.el
, orjs-mode-hook
). Or you can disablebabel
inprettier-enabled-parsers
, which will make it trymeriyah
next.