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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

.babelrc is ignored #61

Closed
webdif opened this issue Aug 11, 2017 · 1 comment
Closed

.babelrc is ignored #61

webdif opened this issue Aug 11, 2017 · 1 comment

Comments

@webdif
Copy link

webdif commented Aug 11, 2017

I have this exact same issue posted here #52.
But it should have been fixed in #53.

My versions:
brunch v2.10.10
babel-brunch v6.1.1

My .babelrc:

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

The error message: Missing class properties transform.

If I add this in brunch-config.coffee, it works:

exports.config =
  plugins:
    babel:
      presets: [
        'env'
        'react'
      ]
      plugins: [
        'transform-class-properties'
        'transform-object-rest-spread'
        'glamorous-displayname'
      ]

Am I missing something? 😭
If I delete the content of .babelrc, I got Unexpected EOF so the file is read…

Thanks in advance for your help!

@webdif
Copy link
Author

webdif commented Aug 11, 2017

After one hour of search, I gave up and create an issue asking for help… and just after posted it, I figured out 🙃

Changeing my package.json from "^6.1.1" to "https://github.com/babel/babel-brunch" resolve my bug. Seems like the #53 fix is not published yet.
@paulmillr any chance this will be published soon? 🙂

I close my issue, sorry for the noise. But maybe it will not be for nothing and this will help someone.

@webdif webdif closed this as completed Aug 11, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant