1
0
mirror of https://github.com/home-assistant/frontend.git synced 2025-12-24 12:49:19 +00:00

Use ES modules and dynamic import for Webpack latest builds (#16620)

This commit is contained in:
Steve Repsher
2023-05-30 14:27:49 -04:00
committed by GitHub
parent 70fbf68603
commit 7b350e31dd
4 changed files with 16 additions and 3 deletions

View File

@@ -1,8 +1,13 @@
import webpack from "../build-scripts/webpack.cjs";
export default webpack.createAppConfig({
const config = webpack.createAppConfig({
isProdBuild: false,
latestBuild: true,
isStatsBuild: false,
isTestBuild: true,
});
// instant-mocha forces a CJS library, so cannot output ESM
config.output.module = false;
export default config;