Skip to content

Target ES6 #3

Description

@ptrotter1

It would be nice to be able to target ES6 or ES2015. I've got some code that registers custom elements that I'm trying to compile with WebOptimizer. My ES6 classes are getting compiled down to ES5 and Chrome is complaining that I'm not using the 'new' keyword to instantiate my web components.

Uncaught TypeError: Failed to construct 'HTMLElement': Please use the 'new' operator, this DOM object constructor cannot be called as a function.

Is there a way to make WebOptimizer.TypeScript read the compilerOptions in tsconfig.json?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions