stage-0 Babel plugin not applying class properties transform
See original GitHub issue🐛 Bug Report
My class properties have stopped working after updating a small React app to Parcel 1.6.1. I was using babel-preset-stage-0, which worked fine before updating Parcel. Switching to use babel-plugin-transform-class-properties fixes the problem, but the stage-0 preset should include this.
(I also tried the stage-2 preset, but that doesn’t work either. Only specifically installing the transform plugin gets the app to build)
🎛 Configuration
.babelrc
{
"presets": ["stage-0"]
}
package.json
{
"name": "parcel-babel-error",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"start": "parcel index.html"
},
"keywords": [],
"author": "",
"license": "ISC",
"devDependencies": {
"babel-preset-stage-0": "^6.24.1",
"parcel-bundler": "^1.6.1"
},
"dependencies": {
"react": "^16.2.0",
"react-dom": "^16.2.0"
}
}
CLI command
npm start
🤔 Expected Behavior
Class properties should be transpiled by babel-preset-stage-0 and the app should build
😯 Current Behavior
A build error:
🚨 /Users/oliverjam/Web/parcel-babel-error/index.js:5:4: /Users/oliverjam/ 3 | rcel-babel-error/index.js: Missing class properties transform.
4 | class App extends React.Component {
> 5 | state = {}
| ^
6 | render() {
7 | return <h1>Hello</h1>
8 | }
🔦 Context
I’m trying to use class properties via the stage-0 Babel preset, which should encompass all features in the stages above (class properties are in the stage-2 preset).
💻 Code Sample
Should be fully reproducible here: https://github.com/oliverjam/parcel-babel-error-repro
🌍 Your Environment
| Software | Version(s) |
|---|---|
| Parcel | 1.6.1 |
| Node | 8.9.4 |
| npm/Yarn | npm 5.6.0 |
| Operating System | macOS 10.13.3 |
Issue Analytics
- State:
- Created 6 years ago
- Reactions:11
- Comments:15 (1 by maintainers)

Top Related StackOverflow Question
still happening in 1.9.6
I’ve had to install manually, new .babelrc is now…
{ “presets”: [“preact-app”], “plugins”: [“transform-class-properties”] }