vue-meta
vue-meta copied to clipboard
Build contains ES5 incompatible code
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
Me too.