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.

[es-dev-server] --compatibility all does not resolve `export {};`

See original GitHub issue

When the .js file contains an empty export {}; line and --compatibility all is used, the line is not transformed causing an error in old browsers.

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
goremikincommented, Nov 4, 2019

@daKmoR, I have raised an issue with Babel team: https://github.com/babel/babel/issues/10634. Thanks 😃

0reactions
LarsDenBakkercommented, Nov 6, 2019

Nice, thats fast.

Read more comments on GitHub >

github_iconTop Results From Across the Web

open-wc/es-dev-server - GitHub
es-dev-server is a static web server. When a request is made from the browser for /foo/bar.js it will try and find this file...
Read more >
Developing Without a Build (2): es-dev-server
If compatibility mode is enabled, the dev server takes care of adapting your import maps to work with these libraries, making this a...
Read more >
es-dev-server - npm
Start using es-dev-server in your project by running `npm i es-dev-server`. There are 18 ... This setup does no code transformation at all....
Read more >
How can I use ES6 in webpack.config.js? - Stack Overflow
I don't use babel because webpack itself already supports ES6 module syntax, and my project doesn't need to be compatible with ES5. It's...
Read more >
Using NodeJs packages in the browser with import maps
Until import maps, the web has had no native ability to do this kind ... not be compatible with the browser, back before...
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