♻️ Use ESM target for build frontend

This commit is contained in:
Andrey Antukh
2025-11-20 19:18:15 +01:00
parent 5080fcc594
commit 2f1b99fa53
27 changed files with 165 additions and 94 deletions

View File

@@ -31,9 +31,9 @@ const rebuildNotify = {
const config = {
entryPoints: ["target/index.js"],
bundle: true,
format: "iife",
format: "esm",
banner: {
js: '"use strict"; var global = globalThis;',
js: '"use strict";\nvar global = globalThis;',
},
outfile: "resources/public/js/libs.js",
plugins: [fixReactVirtualized, rebuildNotify],