IndexXuan/vite-plugin-mpa

Updated to Vite 5 and getting error "TypeError: mpa is not a function"

Opened this issue · 3 comments

After updating to Vite 5 I am getting following error on build
"TypeError: mpa is not a function"

Please help me out

It has to do with how the module is exported. This worked for me,

import mpaPlugin from 'vite-plugin-mpa';

// @ts-expect-error
const mpa = mpaPlugin.default;

check this #30 (comment)