Skip to content

Private field support in babel-template #9975

@jhpratt

Description

@jhpratt

Current Behavior
An error is thrown when templates containing private fields are parsed.

Input Code

module.exports = function ({ template }) {
  const set_private = template`this.#IDENT = VALUE`;
};

Expected behavior/code
I would expect to be able to correctly parse and use templates containing private fields.

Environment (fairly certain none of this matters except Babel version)

  • Babel version: 7.4.4
  • Node/npm version: Node 12
  • OS: Ubuntu 19.04
  • Monorepo: no
  • How you are using Babel: CLI

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions