CyberChef/babel.config.js
GCHQDeveloper581 d8809b5c95
Make compatible with node >=22
This is a breaking change for Node <=16
Therefore minimum requirement and build/edit
environment updated to the current Node LTS, v20
2025-10-28 16:21:32 +00:00

30 lines
757 B
JavaScript

module.exports = function(api) {
api.cache.forever();
return {
"presets": [
["@babel/preset-env", {
"modules": false,
"useBuiltIns": "entry",
"corejs": 3
}]
],
"plugins": [
"dynamic-import-node",
"@babel/plugin-syntax-import-assertions",
[
"babel-plugin-transform-builtin-extend", {
"globals": ["Error"]
}
],
[
"@babel/plugin-transform-runtime", {
"regenerator": true
}
]
],
"generatorOpts": {
"importAttributesKeyword": "with"
}
};
};