@hap-toolkit/packager
Version:
@hap-toolkit/packager
26 lines (24 loc) • 488 B
JavaScript
/*
* Copyright (c) 2021-present, the hapjs-platform Project Contributors
* SPDX-License-Identifier: Apache-2.0
*/
module.exports = function (api) {
api.cache(true)
return {
presets: [
[
'@babel/preset-env',
{
targets: {
node: 8
}
}
]
],
plugins: [
'@babel/plugin-transform-modules-commonjs',
'@babel/plugin-proposal-optional-chaining'
],
babelrcRoots: ['.', 'node_modules']
}
}