Skip to content

[bug] babel-preset-typescript with babel-loader failed to parse private constructor #10644

@viktor-ku

Description

@viktor-ku
    "@babel/core": "^7.7.0",
    "@babel/preset-env": "^7.7.0",
    "@babel/preset-typescript": "^7.7.0",
    "babel-loader": "^8.0.6",
    "typescript": "^3.6.4",
    "webpack": "^4.40.2",
    "webpack-cli": "^3.3.9",
    "webpack-dev-middleware": "^3.7.0",
    "webpack-hot-middleware": "^2.25.0"
class Foo {
  private constructor() {}
}

in resulting js file I see

class Foo {
   private constructor() {}
}

Metadata

Metadata

Assignees

Labels

Has PRi: regressionoutdatedA closed issue/PR that is archived due to age. Recommended to make a new issuepkg: parser

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions