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.

distribution code should be compiled into ES5

See original GitHub issue

I have problem to minify my code during build process as dependency query-string file has ES6 syntax contained into index.js

Error

Failed to compile.
Failed to minify the code from this file: 
 ./node_modules/query-string/index.js:8 

More on issue:

https://github.com/facebook/create-react-app/blob/master/packages/react-scripts/template/README.md#npm-run-build-fails-to-minify

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

10reactions
SamVerschuerencommented, Mar 23, 2018

If you want support for Webpack, use v5 instead of v6.

2reactions
emadowcommented, Mar 23, 2018

Seems to be broken in 6.0.0 too 😦

Read more comments on GitHub >

github_iconTop Results From Across the Web

Do We Still Need to Compile ES6 JavaScript Code Into ES5 in ...
If it was compiled to ES5 by Babel, it would use the concat function to copy an array: var array1 = [1, 2,...
Read more >
React/ES6 Webpack config won't compile to ES5
I'm trying to build an React app with a server and I'm having issues with configuring Webpack. My server code is in an...
Read more >
You might not need to transpile your JavaScript - freeCodeCamp
JSX at its core is a transformation of XHTML to JS code and doesn't necessary need a full transpiler like Babel. Besides, if...
Read more >
Stencil Config
Stencil is traditionally used to compile many components into an app, and each component comes with its own compartmentalized styles. However, it's still...
Read more >
Why don't we have a transpiler from ES5 to ES6/ES7? - Quora
Lebab transpiles your ES5 code to ES6/ES7. It does exactly the opposite of what Babel does. So you can go ahead and Lebab...
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