flecks/packages/build/build/babel.config.js

38 lines
973 B
JavaScript
Raw Normal View History

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: [
2024-01-25 06:42:31 -06:00
'@babel/plugin-syntax-dynamic-import',
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
],
2024-01-25 06:42:31 -06:00
shippedProposals: true,
targets: {
esmodules: true,
node: 'current',
},
2022-02-25 04:58:08 -06:00
},
],
],
};
};