2022-02-25 04:58:08 -06:00
|
|
|
module.exports = (api) => {
|
|
|
|
api.cache(true);
|
|
|
|
return {
|
2022-03-11 08:08:36 -06:00
|
|
|
assumptions: {
|
|
|
|
ignoreFunctionLength: true,
|
|
|
|
noClassCalls: true,
|
|
|
|
noDocumentAll: true,
|
|
|
|
objectRestNoSymbols: true,
|
|
|
|
privateFieldsAsProperties: true,
|
|
|
|
setSpreadProperties: true,
|
|
|
|
},
|
2022-02-25 04:58:08 -06:00
|
|
|
plugins: [
|
2023-11-30 21:41:42 -06:00
|
|
|
'@babel/plugin-syntax-class-properties',
|
|
|
|
'@babel/plugin-syntax-logical-assignment-operators',
|
|
|
|
'@babel/plugin-syntax-nullish-coalescing-operator',
|
|
|
|
'@babel/plugin-syntax-optional-chaining',
|
2022-02-25 04:58:08 -06:00
|
|
|
],
|
|
|
|
presets: [
|
|
|
|
[
|
|
|
|
'@babel/preset-env',
|
|
|
|
{
|
|
|
|
exclude: [
|
|
|
|
'@babel/plugin-transform-regenerator',
|
2022-03-29 21:02:05 -05:00
|
|
|
'@babel/plugin-transform-async-to-generator',
|
2022-04-04 03:11:51 -05:00
|
|
|
'@babel/plugin-transform-object-super',
|
2022-02-25 04:58:08 -06:00
|
|
|
],
|
|
|
|
},
|
|
|
|
],
|
|
|
|
],
|
|
|
|
};
|
|
|
|
};
|