#esbuild
共 3 篇文章
解决 esbuild 报错 Top-level await is not available with format iife 修复
排查 esbuild 编译包含顶层 await 代码时报错 Top-level await is currently not supported with the "iife" or "cjs" output format,分析 ESM 与 CJS/IIFE 输出格式对顶层异步的支持差异。
解决 esbuild 报错 React is not defined jsxFactory JSX 运行时失配修复
排查 使用 esbuild 构建 React/Preact 组件时控制台报 ReferenceError: React is not defined,分析 新旧 JSX 转换(classic vs automatic)与 jsxFactory / jsxFragment 配置。
解决 esbuild 报错 Transforming let or const to ES5 is not supported 目标降级修复
排查 使用 esbuild 快速编译现代前端工程时,配置 target: 'es5' 抛出 Error: Transforming const to the configured target environment (es5) is not supported,分析 esbuild 设计哲学与 Babel 协作分工。


