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

Parcel cann't compiler babel.config.js #2595

Closed
zanisis opened this issue Jan 29, 2019 · 1 comment
Closed

Parcel cann't compiler babel.config.js #2595

zanisis opened this issue Jan 29, 2019 · 1 comment

Comments

@zanisis
Copy link

zanisis commented Jan 29, 2019

🐛 bug report

i'm using babel version 7 but parcel not compiler babel.config.js only .babelrc
ref: https://babeljs.io/docs/en/configuration

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

module.exports = function () {
    const presets = [ 
      "@babel/preset-react",
      "@babel/preset-flow"
    ];
    const plugins = [
      ["@babel/plugin-proposal-decorators", {"legacy": true }],
      ["@babel/plugin-proposal-class-properties", { "loose": false }],
      "@babel/plugin-proposal-export-namespace-from",
      "@babel/plugin-proposal-throw-expressions",
      "@babel/plugin-syntax-dynamic-import",
    ];
  
    return {
        presets,
        plugins
    };
  }

🤔 Expected Behavior

should be working like .babelrc

😯 Current Behavior

example in my configuration using @babel/plugin-proposal-decorators, but when running program got message error
capture

but if i using .babelrc it's working

💻 Code Sample

https://babeljs.io/docs/en/configuration

🌍 Your Environment

Software Version(s)
Parcel 1.11.0
Node 10.15.0
npm/Yarn yarn 1.13.0
Operating System windows 10
@mischnic
Copy link
Member

Please take a look at this comment for an explanation why it's very likely that babel.config.js won't be supported.

Duplicate of #2110

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

2 participants