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.

Javascript file extension must be js(x)

See original GitHub issue

It would be nice to be able to specify the extension used for input files. Although I get that the standard extension is .js in our case we used .es6 because we are migrating a big project from old js specification to es6 specification (so we have them side by side) and we chose to use that extension. I think won’t harm to pass that value as an extra argument.

makes sense?

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
the-simiancommented, Jun 1, 2021

Hey I pulled in a fix for this today! Jsut reopen if its no good. I can’t publish immediately so point to the repo if you need it right this moment

1reaction
1000i100commented, Dec 10, 2020

https://github.com/the-simian/es6-plato/blob/master/lib/plato.js#L132

} else if (file.match(/\.(js|jsx|mjs|es6|ts|tsx)$/)) {

Does this will do the tricks or ts is not handled ?

Read more comments on GitHub >

github_iconTop Results From Across the Web

ReactJS - .JS vs .JSX
It's a convention that you can follow while creating the .jsx or .js files, to logically and physically separate the code. Share.
Read more >
Provide a way to add the '.js' file extension to ...
I'm writing in typescript; importing something from a local path in the same project that only contains typescript files. How does appending a...
Read more >
JavaScript practices File extensions
JavaScript practices File extensions. Use .js for JavaScript file extensions. Avoid using .jsx . Rationale. Here are a few reasons to avoid the...
Read more >
JS file - File Format Docs
JS (JavaScript) are files that contain JavaScript code for execution on web pages. JavaScript files are stored with the .js extension. Inside the...
Read more >
JavaScript modules - MDN Web Docs
This guide gives you all you need to get started with JavaScript module ... this article, we've used .js extensions for our module...
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