summaryrefslogtreecommitdiff
path: root/electron/babel.config.js
diff options
context:
space:
mode:
Diffstat (limited to 'electron/babel.config.js')
-rw-r--r--electron/babel.config.js16
1 files changed, 16 insertions, 0 deletions
diff --git a/electron/babel.config.js b/electron/babel.config.js
new file mode 100644
index 00000000..ff2f95be
--- /dev/null
+++ b/electron/babel.config.js
@@ -0,0 +1,16 @@
+module.exports = {
+ presets: [
+ [
+ '@babel/preset-env',
+ {
+ useBuiltIns: 'usage', // adds specific imports for polyfills when they are used in each file.
+ modules: false, // preserve ES modules.
+ corejs: { version: 3, proposals: true }, // enable polyfilling of every proposal supported by core-js.
+ },
+ ],
+ ],
+ plugins: [
+ '@babel/plugin-transform-runtime', // enables the re-use of Babel's injected helper code to save on codesize.
+ ],
+ exclude: [/core-js/],
+}