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.

Browser version of 5.15.x does not work in IE 11

See original GitHub issue

Tell us about your environment

  • ESLint Version: 5.15.x
  • Node Version: 11.11.0
  • npm Version: 6.9.0

What did you do?

Built ESLint using

npm run webpack

and ran it in IE 11 (more precisely, in a web worker and in conjunction with the Monaco editor but that should not matter). The source code couldn’t be parsed because it contains a lot of ES2015+ syntax like const and let since the recent change to Webpack. The Browserify version in 5.14.x works in IE 11.

You can get a step further by changing the Webpack config to also transpile files from node_modules (including .mjs files apparently) like shown below. This makes sure to transpile to ES5 but I got stuck at this stage because IE still throws the error Incorrect syntax in regular expression. Since I saw nothing obvious in the source code I gave up at this point.

rules: [
    {
        test: /\.m?js$/u,
        loader: "babel-loader",
        options: {
            presets: ["@babel/preset-env"]
        }
    }
]

So the question boils down to: What browsers do you intend to support with the browser variant of ESLint?

Are you willing to submit a pull request to fix this bug? Not at the moment, sorry.

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
spahnkecommented, Mar 17, 2019

Hm, it can in principle (Babel Regex). But I think there would be limitations for usages like

return new RegExp(LINEBREAK_MATCHER.source, "gu");
// or
new RegExp(somePatternVariable, someFlagVariable)

because it can’t really manipulate the content of those variables, right?

0reactions
eslint-deprecated[bot]commented, Jun 12, 2019

Unfortunately, it looks like there wasn’t enough interest from the team or community to implement this change. While we wish we’d be able to accommodate everyone’s requests, we do need to prioritize. We’ve found that accepted issues failing to be implemented after 90 days tend to never be implemented, and as such, we close those issues. This doesn’t mean the idea isn’t interesting or useful, just that it’s not something the team can commit to.

Thanks for contributing to ESLint and we appreciate your understanding.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Fix web compatibility issues using document modes and the ...
Test your sites for document mode compatibility · Go to a site having compatibility problems, press F12 to open the F12 Developer Tools,...
Read more >
Internet Explorer 11 has retired and is officially out of support ...
The retired, out-of-support Internet Explorer 11 desktop application is scheduled to be permanently disabled through a Microsoft Edge update ...
Read more >
Considerations for Microsoft Internet Explorer - Salesforce Help
IE11 has significant performance issues in Lightning Experience. Keep the following considerations in mind when using Salesforce with Microsoft Internet ...
Read more >
Browser Support | Font Awesome Docs
** Uploaded icons in Web Font-based kits won't work in IE 10 and 11. You can use a SVG-based kit if you need...
Read more >
What does <meta http-equiv="X-UA-Compatible" content="IE ...
IE11 has made changes to these modes; see the IE11 note below. Microsoft Edge, the browser that replaced IE11, only honors the X-UA-Compatible...
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