Files
nextcloud-mail/babel.config.js
Hamza Mahjoubi 6539d1da52 Revert "perf: bundle with vite"
This reverts commit c55089baf9.
2024-12-11 17:03:44 +07:00

20 lines
424 B
JavaScript

/**
* SPDX-FileCopyrightText: 2018 Nextcloud GmbH and Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
module.exports = {
plugins: [
'@babel/plugin-syntax-dynamic-import'
],
presets: [
[
'@babel/preset-env',
{
modules: process.env.NODE_ENV === 'testing' ? 'commonjs' : undefined,
useBuiltIns: process.env.NODE_ENV === 'testing' ? 'usage' : 'entry',
corejs: 3
}
]
]
};