nuxt / vue-meta

Manage HTML metadata in Vue.js components with SSR support
https://vue-meta.nuxtjs.org
Other
4.07k stars 248 forks source link

Build contains ES5 incompatible code #773

Open slurmulon opened 2 years ago

slurmulon commented 2 years ago

Problem

vue-meta is producing bundles that contain syntax features that are incompatible with ES5+.:

This causes syntax errors to be reported on (at least) the following browsers, rendering any app using vue-meta unusable:

Ideally the build would contain code that is transpiled/polyfilled to support browsers compatible with ES5+.

Solution

Use @rollup/plugin-babel@^5.x in the build script to transpile the code for all module formats.

Environment

BlackCubeNo99 commented 1 year ago

Me too.