Skip to content

Commit 4a52e18

Browse files
refactor(Output): Lazy-load RestPlugin only when Compiler=Rest env var is set
Change RestPlugin from eager import to lazy loading, loading the plugin dynamically only when Compiler=Rest environment variable is explicitly set. This avoids importing RestPlugin (and its node:fs dependencies) during normal ESBuild builds. - Update Source/ESBuild/Output.ts and Configuration/ESBuild/Output.js to conditionally import RestPlugin - Replace `createRestPluginIfEnabled()` with lazy import: `await import("./RestPlugin.js").then((M) => M.createRestPluginIfEnabled())` - Simplify filter from `(plugin) => plugin !== null` to `Boolean` - Reformat all ESBuild configuration files for consistent style - Update prepublishOnly.sh build commands with correct file patterns and paths This improves build performance by avoiding unnecessary module resolution when using the default ESBuild compiler.
1 parent 9451257 commit 4a52e18

File tree

32 files changed

+1281
-1327
lines changed

32 files changed

+1281
-1327
lines changed

Configuration/ESBuild.js

100755100644
Lines changed: 68 additions & 74 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)