[Vuejs]-How to rollup .js file with code having export default () {}?

0👍

For me the actual cause of the error was further down in the output. I was able to workout that buble was unable to transform a section of my code (a for loop). I rewrote it and the error went away.

Example of what I changed from

for (const [key, value] of Object.entries(obj)) {
    console.log(key, value);
}

and to

Object.entries(obj).forEach(
    ([key, value]) => console.log(key, value)
);

Leave a comment