fix(ui): esbuild platform node for UI fixture bundling
CI / check (push) Successful in 29s
CI / tests-imaging-browsers (push) Successful in 1m44s
CI / tests-integration (push) Successful in 1m49s
CI / tests-unit (push) Successful in 1m53s
CI / tests-quality (push) Successful in 45s
CI / tests-ui (push) Failing after 4m11s
CI / preflight (push) Skipped
CI / deploy (push) Skipped
CI / check (push) Successful in 29s
CI / tests-imaging-browsers (push) Successful in 1m44s
CI / tests-integration (push) Successful in 1m49s
CI / tests-unit (push) Successful in 1m53s
CI / tests-quality (push) Successful in 45s
CI / tests-ui (push) Failing after 4m11s
CI / preflight (push) Skipped
CI / deploy (push) Skipped
Add platform: 'node' to esbuild build options so Node.js built-ins (node:async_hooks, node:crypto, node:fs/promises, node:path) are treated as external instead of failing to resolve during browser bundle generation in e2e/ui/fixture-server.mjs.
This commit is contained in:
1 parent
59a45d2165
commit
8d8dab5817
1 file changed
+1
@@ -30,6 +30,7 @@ const bundle = await build({
|
|||||||
outdir: path.join(root, "test-results/ui-fixture"),
|
outdir: path.join(root, "test-results/ui-fixture"),
|
||||||
format: "iife",
|
format: "iife",
|
||||||
jsx: "automatic",
|
jsx: "automatic",
|
||||||
|
platform: "node",
|
||||||
alias: { "@": path.join(root, "src") },
|
alias: { "@": path.join(root, "src") },
|
||||||
define: { "process.env.NODE_ENV": '"production"' },
|
define: { "process.env.NODE_ENV": '"production"' },
|
||||||
plugins: [
|
plugins: [
|
||||||
|
|||||||
Reference in new issue
Block a user