Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

--experimental-scope-hoisting breaks project using rebass #2977

Closed
midnightcodr opened this issue May 5, 2019 · 3 comments 路 Fixed by #2993
Closed

--experimental-scope-hoisting breaks project using rebass #2977

midnightcodr opened this issue May 5, 2019 · 3 comments 路 Fixed by #2993

Comments

@midnightcodr
Copy link

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
@devongovett
Copy link
Member

This is due to a missing __esModule flag that babel uses for interop between common JS and ES6 modules. I made a commit to the Parcel 2 tree shaking branch that fixes this: ab98afe. Will need to be back ported.

@devongovett
Copy link
Member

Should be fixed by #2993.

@midnightcodr
Copy link
Author

How can I start using the version with your fix @devongovett ?

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

Successfully merging a pull request may close this issue.

3 participants