Closed paul-marechal closed 6 years ago
Electron is not always using latest Chromium build.
To get this working, you might wanna use babel and babel-preset-env
to compile to lower target, like ES5 or below.
The reason this package is delivered with futuristic syntax is because browsers that don't support this syntax, also don't support WebAssembly
(required by monaco-textmate
).
The reason this package is delivered with futuristic syntax is because browsers that don't support this syntax, also don't support WebAssembly (required by monaco-textmate).
Indeed. Thanks for the pointer with babel-preset-env
.
When using webpack, your package is bundled with this piece of code:
But the
...token
notation is not working in the Electron renderer, even Firefox (ESR 52.8.1) has trouble with it.It seems to be only working on Chrome.