mnelson4 / printmyblog

WordPress Plugin that simplifies printing your entire blog
GNU General Public License v3.0
16 stars 6 forks source link

Use webpack and babel to make Javascript compatible with older browsers #18

Open mnelson4 opened 5 years ago

mnelson4 commented 5 years ago

Right now, the Javascript is using arrow functions which aren't compatible with older browsers. But if I were to use babelJS, it would transpile my code so it can be used by older browsers. This may be of help: https://make.wordpress.org/core/2019/03/25/building-javascript/

mnelson4 commented 4 years ago

Along these lines, we could simplify translations JS-side with this: https://make.wordpress.org/core/2018/11/09/new-javascript-i18n-support-in-wordpress/