You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Warning: Use of the with statement is not recommended, as it may be the source of confusing bugs and compatibility issues. See the "Ambiguity Contra" paragraph in the "Description" section below for details.
We are facing the issue, that if we import options.js from node_modules with a bundler that outputs an EcmaScript module the code breaks in the browser with the following SyntaxError:
strict mode code may not contain 'with' statements
We cannot disable strict mode as we are in an ESM environment using ECMAScript classes that are always strict.
The text was updated successfully, but these errors were encountered:
In line 151 inside dist/options.js the with statement is used. This is what MDN says about the use of with:
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/with
We are facing the issue, that if we import options.js from node_modules with a bundler that outputs an EcmaScript module the code breaks in the browser with the following SyntaxError:
We cannot disable strict mode as we are in an ESM environment using ECMAScript classes that are always strict.
The text was updated successfully, but these errors were encountered: