–experimental-scope-hoisting breaks project using rebass

Choose one: a 🐛 bug report

🎛 Configuration (.babelrc, package.json, cli command)

Please see https://gist.github.com/midnightcodr/fbcfc63ab80951b3f13b330b0ec1f406

{
  "presets": [
    "env",
    "react"
  ],
  "plugins": [
    "transform-object-rest-spread",
    "transform-class-properties"
  ]
}

🤔 Expected Behavior

If I build the project without –experimental-scope-hoisting, everything works as expected. But with the option on, when serving the site, I am getting

screenshot

In the browser console and a blank page.

😯 Current Behavior

It should render a page with “Hello React!” and no js error.

💁 Possible Solution

🔦 Context

💻 Code Sample

Please see https://gist.github.com/midnightcodr/fbcfc63ab80951b3f13b330b0ec1f406

🌍 Your Environment

Software Version(s)
Parcel 1.12.3
Node 10.15.3
npm/Yarn 6.4.1
Operating System Ubuntu 19.04

1 possible answer(s) on “–experimental-scope-hoisting breaks project using rebass