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.

Ability to set `useESModules` to `false`

See original GitHub issue

It seems to me that there is no way in which this settings can be set to false? It could not be overwritten in a babel.config.js neither 😞

https://github.com/facebook/create-react-app/blob/f89385f7438f39750b762590ebd9729534e30190/packages/babel-preset-react-app/create.js#L143

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
Pajncommented, Oct 19, 2018

I just hit on the same problem.

My use case is that I use a combined build process for everything for which babel-preset-react-app is the base but with additional plugins for things in the node environment. This has worked good previously but when I try to update to the new version I of course get syntax errors on the import syntax.

Being able to disable useESModules would really help me as I then can avoid forking babel-preset-react-app

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to overwrite babel's preset plugin options - Stack Overflow
Here's a config using babel-plugin-react-app that works for node.js: presets: [ ['react-app', { useESModules: false }], [ ...
Read more >
babel/plugin-transform-runtime
A plugin that enables the re-use of Babel's injected helper code to save on codesize.
Read more >
ember-cli-babel - npm
These options are typically set in an apps ember-cli-build.js file, ... regenerator: false, useESModules: true, }, ], // this is where all ...
Read more >
Babel loader issues with polkadotjs and create-react-app
I think the issue can be solved either by using a babel transform or maybe not using the import.meta.url as can be seen...
Read more >
dependencies.js - facebook/create-react-app - Sourcegraph
https://github.com/facebook/create-react-app/issues/720 ... var areHelpersEnabled = validateBoolOption('helpers', opts.helpers, false);.
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