Skip to content

Target ES6 for ESM bundle #526

@binyamin

Description

@binyamin

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.

compilerOptions: {
target: 'es5',

Use-case

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.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions