ptt-client
Version:
A Node client for fetching data from ptt.cc.
20 lines (18 loc) • 505 B
JavaScript
;
module.exports = function(api) {
api.cache(true);
const config = {
presets: [
"@babel/env",
"@babel/preset-typescript"
],
plugins: [
"@babel/plugin-proposal-export-default-from",
["@babel/plugin-proposal-class-properties", { loose: false }],
"@babel/plugin-proposal-object-rest-spread",
["@babel/plugin-transform-runtime", { regenerator: true }],
"@babel/plugin-transform-named-capturing-groups-regex",
]
}
return config;
}