fix(ui): esbuild platform node for UI fixture bundling
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"),
|
||||
format: "iife",
|
||||
jsx: "automatic",
|
||||
platform: "node",
|
||||
alias: { "@": path.join(root, "src") },
|
||||
define: { "process.env.NODE_ENV": '"production"' },
|
||||
plugins: [
|
||||
|
||||
Reference in new issue
Block a user