Commit d89b68e
committed
fix(cli): suppress esbuild warnings in CLI build
Fixed two esbuild warnings:
1. commonjs-variable-in-esm - Intentional CommonJS compatibility code
2. require-resolve-not-external - node-gyp marked as external
Changes:
- Added node-gyp to external array (for runtime require.resolve)
- Added logOverride to silence commonjs-variable-in-esm warning
The CommonJS exports in config.mts and flags.mts are intentional for
compatibility when files are require()'d at runtime. The warnings
were harmless but noisy.
node-gyp must be external because getNmNodeGypPath() uses
require.resolve('node-gyp/package.json') to locate the user's
installed node-gyp at runtime, not bundle it.1 parent 08474bc commit d89b68e
1 file changed
+8
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
110 | 110 | | |
111 | 111 | | |
112 | 112 | | |
113 | | - | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
114 | 121 | | |
115 | 122 | | |
116 | 123 | | |
| |||
0 commit comments