summaryrefslogtreecommitdiff
path: root/electron/babel.config.js
blob: ff2f95bea46d99c2acd34f6083e78509218a37a5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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/],
}