Files
nextcloud-mail/webpack.dev.js
Richard Steinmetz cdb23b8d73 build: fix compatibility with node < 20.19.0 (and >= 20.0.0)
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>
2025-05-20 11:05:43 +02:00

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',
})