vue-meta icon indicating copy to clipboard operation
vue-meta copied to clipboard

Build contains ES5 incompatible code

Open slurmulon opened this issue 3 years ago • 1 comments

Problem

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

  • https://caniuse.com/mdn-javascript_classes_private_class_fields
  • https://caniuse.com/mdn-javascript_operators_optional_chaining
  • etc

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

  • Chrome <=78
  • Safari <= 14.4 (related: #760)

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

slurmulon avatar Jul 27 '22 12:07 slurmulon

Me too.

BlackCubeNo99 avatar Dec 06 '22 11:12 BlackCubeNo99