question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Build Error: Does the ember-cli-babel version 7 and above provide no support for babel compact option?

See original GitHub issue

I was using ember-cli-babel version 6.16.0 and in my ember-cli-build.js I specified a config

babel: {
 compact: false
}

At this version during build I faced no errors, Recently I upgraded my ember-cli-babel version to 7.1.2 and faced an error during build Invalid Option: compact is not a valid top-level option. I presume this is thrown from babel-preset-env@7.0 and above. Can’t we specify compact option for babel for ember-cli-babel@7.0 onwards(is it handled internally) or it is not supported? I am pretty sure babel provides support for this option.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:26 (8 by maintainers)

github_iconTop GitHub Comments

11reactions
lvegeranocommented, Mar 19, 2020

Any updates on this we could greatly benefit from this as well

10reactions
theseyicommented, Feb 26, 2020

Have this same issue as well, build times are unacceptably longer because this option is no longer available for babel. Is there a workaround that can be implemented in the interim?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Build Error: Does the ember-cli-babel version 7 and above provide ...
I was using ember-cli-babel version 6.16.0 and in my ember-cli-build.js I specified a config babel: { compact: false }. At this version during...
Read more >
Options - Babel.js
In older Babel 7 versions, only babel.config.js is supported. "root" - Passes the "root" value through as unchanged. " ...
Read more >
ember-cli-babel | Yarn - Package Manager
This Ember-CLI plugin uses Babel and @babel/preset-env to allow you to use latest Javascript in your Ember CLI project. Table of Contents. Installation ......
Read more >
Ember-cli is ignoring options .babelrc - Stack Overflow
While you can configure babel and ember-cli-babel in your ember-cli-build.js , I think compact will not work because of this open issue.
Read more >
Setting Up a Babel Project - ECMAScript 6 Tutorial
Current browsers don't support all the new ECMAScript 6 (aka ECMAScript ... Babel can also compile other versions of ECMAScript as well as...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found