You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The ESM bundle still targets ES5, which was released in 2009. As far as I can tell, ESM itself was introduced in 2015, so the bundle should really target ES6.
Currently, class "extends" are polyfilled. This means that all of liquid's custom error classes show up as basic Error objects, instead of ParseError etc. The effect is, that it's not easy to use instanceof to check if it's a liquid class.
The text was updated successfully, but these errors were encountered:
Summary
The ESM bundle still targets ES5, which was released in 2009. As far as I can tell, ESM itself was introduced in 2015, so the bundle should really target ES6.
liquidjs/rollup.config.ts
Lines 21 to 22 in 753e8f9
Use-case
Currently, class "extends" are polyfilled. This means that all of liquid's custom error classes show up as basic
Error
objects, instead ofParseError
etc. The effect is, that it's not easy to useinstanceof
to check if it's a liquid class.The text was updated successfully, but these errors were encountered: