mirror of
https://github.com/ONLYOFFICE/web-apps.git
synced 2026-02-10 18:05:32 +08:00
24 lines
613 B
JavaScript
24 lines
613 B
JavaScript
const config = {
|
|
presets: [
|
|
[
|
|
'@babel/preset-env',
|
|
{
|
|
useBuiltIns: false,
|
|
targets: '> 0.25%, not dead',
|
|
}
|
|
],
|
|
'@babel/preset-react'
|
|
],
|
|
plugins: [
|
|
'@babel/plugin-transform-runtime',
|
|
'@babel/plugin-syntax-dynamic-import',
|
|
['@babel/plugin-proposal-decorators', {'legacy': true }],
|
|
['@babel/plugin-transform-class-properties', { 'loose': false }],
|
|
// '@babel/plugin-transform-optional-chaining',
|
|
// '@babel/plugin-transform-nullish-coalescing-operator',
|
|
// '@babel/plugin-transform-react-constant-elements',
|
|
]
|
|
};
|
|
|
|
export default config;
|