2021-11-03 08:06:52 +00:00
|
|
|
/** @type { import('@babel/core').TransformOptions } */
|
|
|
|
module.exports = {
|
|
|
|
presets: [
|
2021-12-21 18:03:36 +00:00
|
|
|
['@babel/preset-env',{targets: {electron: '12.2.3'}}],
|
2021-11-03 08:06:52 +00:00
|
|
|
'@babel/preset-typescript',
|
|
|
|
'@babel/preset-react',
|
|
|
|
],
|
|
|
|
plugins: [
|
|
|
|
["@babel/plugin-proposal-nullish-coalescing-operator"],
|
|
|
|
['@babel/plugin-proposal-decorators', { legacy: true }],
|
|
|
|
['@babel/plugin-proposal-class-properties', { loose: true }],
|
|
|
|
['@babel/plugin-proposal-private-property-in-object', { loose: true }],
|
|
|
|
['@babel/plugin-proposal-private-methods', { loose: true }]
|
|
|
|
],
|
|
|
|
|
|
|
|
}
|