mirror of
https://github.com/nextcloud/mail.git
synced 2025-07-25 17:12:49 +00:00

The 20 branch of Node is only able to handle `require`'ing ES modules starting from 20.19.0. This PR improves the compatibility with older Node versions by forcing a dynamic import for the ES module. Signed-off-by: Richard Steinmetz <richard@steinmetz.cloud>
17 lines
415 B
JavaScript
17 lines
415 B
JavaScript
/**
|
|
* SPDX-FileCopyrightText: 2018 Nextcloud GmbH and Nextcloud contributors
|
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
|
*/
|
|
const { merge } = require('webpack-merge');
|
|
const common = require('./webpack.common.js');
|
|
|
|
module.exports = async() => merge(await common(), {
|
|
mode: 'development',
|
|
devServer: {
|
|
historyApiFallback: true,
|
|
noInfo: true,
|
|
overlay: true
|
|
},
|
|
devtool: 'cheap-source-map',
|
|
})
|